Skip to content

Commit 588306a

Browse files
committed
Update :file to now be standard [type=file] selector.
1 parent aff16f4 commit 588306a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ $.fn.ajaxSubmit = function(options) {
172172
};
173173

174174
// are there files to upload?
175-
var fileInputs = $('input:file:enabled[value]', this); // [value] (issue #113)
175+
var fileInputs = $('input[type=file]:enabled[value]', this); // [value] (issue #113)
176176
var hasFileInputs = fileInputs.length > 0;
177177
var mp = 'multipart/form-data';
178178
var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);

0 commit comments

Comments
 (0)