js大文件上传
一般 10M 以下的文件上传通过设置 Web.Config, 再用 VS 自带的 FileUpload 控件就可以了 , 但是如果要上传 100M 甚至 1G 的文件就不能这样上传了。我这里分享一下我自己开发的一套大文件上传控件供大家参考 这是前端代码: < body > < div id ="app"> {{ message }} < http-uploader6 ></ http-uploader6 > </ div > < script type ="text/javascript"> // 定义一个名为 button-counter 的新组件 Vue.component( 'http-uploader6' , { data() { return { upApp: null } }, mounted() { // 初始化 up6 const _this = this ; this .upApp = new HttpUploaderMgr(); this .upApp.load_to( "up6-div" ); }, destoryed() { //this.editor.destory(); }, methods: { open_file: function () { this .upApp.openFile(); } , open_folder: function () {