代码:
<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>