jqueryfile-uploadblueimp

Finish of Multiple file upload


I have a question about the use of Blueimp jQuery-File-Upload plugin (https://github.com/blueimp/jQuery-File-Upload)

There is a callback function or an alternative method, to know when is finished an upload of multiple files? I do not want to know when is finished the upload of every single file, but when is finished the entire process (All Uploads Complited).

There is also the opportunity to know how many files have actually been loaded and how many they were requested?


Solution

  • Please have a look at the "stop" callback option:

    .bind('fileuploadstop', function (e) {/* ... */})

    And If you want to track uploaded files try to use this:

    $('#fileupload').bind('fileuploaddone', function (e, data) { }
    

    Your collections data.files only contain 1 object each, hence you can track the count of files been uploaded.