Ответ 1
Кажется, что это не реализовано в jQuery, но вы можете проверить себя: http://jsfiddle.net/pimvdb/RCz3s/.
Свойство files
объекта <input type='file'>
возвращает пустой FileList
, если оно реализовано, и в противном случае оно не определено (т.е. оно undefined
).
var support = (function(undefined) {
return $("<input type='file'>") // create test element
.get(0) // get native element
.files !== undefined; // check whether files property is not undefined
})();