Rectangle 27 0

jquery Finish of Multiple file upload?


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

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

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

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

Note
Rectangle 27 0

jquery Finish of Multiple file upload?


var $fileInput = $('#fileupload');

$fileInput.on('fileuploaddone', function(e, data) {
    var activeUploads = $fileInput.fileupload('active');
    /*
     * activeUploads starts from the max number of files you are uploading to 1 when the last file has been uploaded.
     * All you have to do is doing a test on it value.
     */
    if(activeUploads == 1) {
        console.info("All uploads done");
        // Your stuff here
    }
}

Yes, you can call it API to track the end of a multiple upload process:

Note
Rectangle 27 0

jquery Finish of Multiple file upload?


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

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

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

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

Note
Rectangle 27 0

jquery Finish of Multiple file upload?


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

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

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

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

Note