Browse Source

Fix #173: Initialize formdata to send extra data when no files are selected

Kartik Visweswaran 10 years ago
parent
commit
c82a872f9b
2 changed files with 1 additions and 0 deletions
  1. 1 0
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 1 - 0
js/fileinput.js

@@ -1190,6 +1190,7 @@
         },
         uploadExtraOnly: function () {
             var self = this, fnBefore, fnSuccess, fnComplete, fnError;
+            self.formdata = new FormData();
             fnBefore = function (jqXHR) {
                 self.lock();
                 var outData = self.getOutData(jqXHR);

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff