We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1770a commit 8e27059Copy full SHA for 8e27059
jquery.form.js
@@ -314,7 +314,16 @@ $.fn.ajaxSubmit = function(options) {
314
s.data = null;
315
var beforeSend = s.beforeSend;
316
s.beforeSend = function(xhr, o) {
317
- o.data = formdata;
+ /*
318
+ for multiple file upload, we don't get individual progress for each file.
319
+ I am splitting the file upload. So I need option in plugin to send FormData().
320
+ */
321
+ if (options.formData)
322
+ {
323
+ o.data = options.formData;
324
+ } else {
325
+ o.data = formdata;
326
+ }
327
if(beforeSend)
328
beforeSend.call(this, xhr, o);
329
};
0 commit comments