File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
2
* jQuery Form Plugin
3
- * version: 3.19 (19 -NOV-2012)
3
+ * version: 3.20 (20 -NOV-2012)
4
4
* @requires jQuery v1.5 or later
5
5
*
6
6
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -172,7 +172,11 @@ $.fn.ajaxSubmit = function(options) {
172
172
} ;
173
173
174
174
// are there files to upload?
175
- var fileInputs = $ ( 'input[type=file]:enabled[value]' , this ) ; // [value] (issue #113)
175
+
176
+ // [value] (issue #113), also see comment:
177
+ // https://github.com/malsup/form/commit/588306aedba1de01388032d5f42a60159eea9228#commitcomment-2180219
178
+ var fileInputs = $ ( 'input[type=file]:enabled[value!=""]' , this ) ;
179
+
176
180
var hasFileInputs = fileInputs . length > 0 ;
177
181
var mp = 'multipart/form-data' ;
178
182
var multipart = ( $form . attr ( 'enctype' ) == mp || $form . attr ( 'encoding' ) == mp ) ;
You can’t perform that action at this time.
0 commit comments