Skip to content

Commit d4f3b5b

Browse files
committed
Prevent errors when passing a non-object type as formData option.
1 parent 2a07984 commit d4f3b5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.fileupload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.28.2
2+
* jQuery File Upload Plugin 5.28.3
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -243,7 +243,7 @@
243243
if ($.isArray(options.formData)) {
244244
return options.formData;
245245
}
246-
if (options.formData) {
246+
if ($.type(options.formData) === 'object') {
247247
formData = [];
248248
$.each(options.formData, function (name, value) {
249249
formData.push({name: name, value: value});

0 commit comments

Comments
 (0)