我有一个关于使用Blueimp jQuery-File-Upload插件的问题(https://github.com/blueimp/jQuery-File-Upload)
有一个回调函数或替代方法,知道何时完成多个文件的上传?我不想知道什么时候完成每个文件的上传,但是什么时候完成整个过程(All Uploads Complited).
还有机会知道实际加载了多少文件以及请求了多少文件?
我使用jQuery文件上传插件(http://blueimp.github.io/jQuery-File-Upload/)来管理我的文件上传.它工作得很好.
我可以检测每个文件的上传时间(例如)是否显示消息.
但我想检测何时上传每个文件以显示最终消息.
怎么办这样的事情?
以下是我的实际实施:
$('#fileupload').fileupload({
url: "api/fileManager",
dataType: 'json',
maxFileSize: 100000000, // 100 MB for testing!
dropZone: $(document.body)
}).on('fileuploadchange', function (e, data) {
// nothing here
}).on('fileuploaddrop', function (e, data) {
// nothing here
}).on('fileuploadsend', function (e, data) {
// displaying the loading & progress bar
$('#loading').show().html('<small><b>' + rscTransport.loading + '</b></small>');
$('#progress').show();
}).on('fileuploaddone', function (e, data) {
// here this is called for each individual file
if (typeof data.result != 'undefined') {
ctxTransport.getDocumentsByType(data.result.typeId, documents);
log('Fichier chargé avec …Run Code Online (Sandbox Code Playgroud) 我正在使用PHP的jQuery Multifile上传器(https://github.com/blueimp/jQuery-File-Upload)
我想在上传所有文件后刷新上传页面,我使用的是基本加UI,请告诉我是否有任何简单的方法来实现它