Skip to content

Commit 67d69b0

Browse files
committed
allow extraFields to be a function
1 parent ea33a26 commit 67d69b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jquery.html5_upload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
if (window.FormData) {//Many thanks to scottt.tw
157157
var f = new FormData();
158158
f.append(typeof(options.fieldName) == "function" ? options.fieldName() : options.fieldName, file);
159+
options.extraFields = typeof(options.extraFields) == "function" ? options.extraFields() : options.extraFields;
159160
$.each(options.extraFields, function(key, val){
160161
f.append(key, val);
161162
});

0 commit comments

Comments
 (0)