我正在使用ng-file-upload。我的结构就像
file.upload = Upload.upload({
//File upload link and file itself
//=>>add code for chunking very large file, upload it and on chunk.upload.progress, pass data to file.upload.progress
});
file.upload.progress(function (evt) {
//Progress code
});
file.upload.success(function (param1, param2, ....) {
//success code
});
file.upload.success(function (param1, param2, ....) {
//Progress code
});
我也有错误,最后。现在,我想在文件上传中添加另一个逻辑,用于将非常大的文件分块为较小的文件,然后计算文件的所有进度。为此,我必须添加用于对非常大的文件进行分块的代码,将其上传并在chunk.upload.progress上,将数据传递到上述指定位置的file.upload.progress。我该怎么办?