To support extra field update in filepreupload event handler
@@ -1,2 +1,3 @@
nuget/content/
nuget/bootstrap-fileinput.*.nupkg
+.DS_Store
@@ -1243,7 +1243,8 @@
},
ajaxSubmit: function (fnBefore, fnSuccess, fnComplete, fnError) {
var self = this, settings;
- self.uploadExtra();
+ // to support extra field update in fnBefore function
+ // self.uploadExtra();
settings = $.extend({
xhr: function () {
var xhrobj = $.ajaxSettings.xhr();
@@ -1256,7 +1257,11 @@
cache: false,
processData: false,
contentType: false,
- beforeSend: fnBefore,
+ beforeSend: function() {
+ fnBefore.apply(this, arguments);
+ self.uploadExtra();
+ },
success: fnSuccess,
complete: fnComplete,
error: fnError