首页 > 代码库 > UpLoader------实现上传大文件

UpLoader------实现上传大文件

代码:

<div id="selectFile">选择文件1</div>

 

<script>
    var da = newGuid();
    var kk = WebUploader.create({
        auto: true,
        formData: {},
        server: ‘../Home/Import‘,
        swf: ‘../scripts/webuploader/Uploader.swf‘,
        threads: 1,
        pick: ‘#selectFile‘,
        chunked: true,
        chunkSize: 2 * 1024 * 1024,
        //fileNumLimit: 3,
        //fileSizeLimit: 800 * 1024 * 1024,    // 200 M
        //fileSingleSizeLimit: 200 * 1024 * 1024,    // 50 M
        //accept: {
        //    title: ‘Video‘,
        //    extensions: ‘‘,
        //    mimeTypes: ‘video/mp4‘
        //}
    });
</script>

 

UpLoader------实现上传大文件