瀏覽代碼

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

Kartik Visweswaran 10 年之前
父節點
當前提交
c82a872f9b
共有 2 個文件被更改,包括 1 次插入0 次删除
  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