We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cd06c2 commit b1b0b04Copy full SHA for b1b0b04
1 file changed
js/jquery.fileupload-fp.js
@@ -1,5 +1,5 @@
1
/*
2
- * jQuery File Upload File Processing Plugin 1.2.1
+ * jQuery File Upload File Processing Plugin 1.2.3
3
* https://github.com/blueimp/jQuery-File-Upload
4
*
5
* Copyright 2012, Sebastian Tschan
@@ -62,9 +62,13 @@
62
// fileupload widget (via file input selection, drag & drop or add
63
// API call). See the basic file upload widget for more information:
64
add: function (e, data) {
65
- $(this).fileupload('process', data).done(function () {
66
- data.submit();
67
- });
+ if (data.autoUpload || (data.autoUpload !== false &&
+ ($(this).data('blueimp-fileupload') ||
+ $(this).data('fileupload')).options.autoUpload)) {
68
+ $(this).fileupload('process', data).done(function () {
69
+ data.submit();
70
+ });
71
+ }
72
}
73
},
74
0 commit comments