相关疑难解决方法(0)

完成多个文件上传

我有一个关于使用Blueimp jQuery-File-Upload插件的问题(https://github.com/blueimp/jQuery-File-Upload)

有一个回调函数或替代方法,知道何时完成多个文件的上传?我不想知道什么时候完成每个文件的上传,但是什么时候完成整个过程(All Uploads Complited).

还有机会知道实际加载了多少文件以及请求了多少文件?

jquery file-upload blueimp

9
推荐指数
2
解决办法
6477
查看次数

jQuery文件上传插件:上传所有文件时触发事件

我使用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)

javascript jquery-plugins

8
推荐指数
1
解决办法
2万
查看次数

在jQuery Multi文件上传器中完成上传后刷新页面

我正在使用PHP的jQuery Multifile上传器(https://github.com/blueimp/jQuery-File-Upload)

我想在上传所有文件后刷新上传页面,我使用的是基本加UI,请告诉我是否有任何简单的方法来实现它

javascript php jquery file-upload blueimp

2
推荐指数
1
解决办法
6830
查看次数

标签 统计

blueimp ×2

file-upload ×2

javascript ×2

jquery ×2

jquery-plugins ×1

php ×1