Permalink
Browse files

Merge pull request #626 from sebslomski/master

Forms FileInput
  • Loading branch information...
2 parents 002726a + 00030f9 commit 819cd5aed6aeeff23c2f4d2f9a6b97b0fba58c80 @paulirish paulirish committed Jul 19, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 feature-detects/forms-fileinput.js
@@ -0,0 +1,8 @@
+// Detects whether input type="file" is available on the platform
+// E.g. iOS < 6 and some android version don't support this
+
+Modernizr.addTest('fileinput', function() {
+ var elem = document.createElement('input');
+ elem.type = 'file';
+ return !elem.disabled;
+});

0 comments on commit 819cd5a

Please sign in to comment.