blueimp/jQuery-File-Upload — Issue #750: Sending files with multiple requests
Author: jaikishanl
Created: 2011-11-03 20:10:42+00:00
State: open

I am following the below url
https://github.com/blueimp/jQuery-File-Upload/wiki/API

for sending multiple files with multiple requests (one post for one file)

This is my add callback function:

var addFn = function (e, data) {
$.each(data.files, function (index, file) {
alert('Added file: ' + file.name);
});

data.submit();

console.info("add", e, data);
};

$('#fileupload').fileupload({

dataType: "html",
forceIframeTransport: true,
fail: failFn,
add: addFn,
sequentialUploads: true,
url: "http://localhost:8080/FileUploadServlet/FileUpload",
});

But seemingly it is sending all the files in a single POST. Can you suggest how can I achieve that? Am I missing something in the above code?

Many Thanks!