Skip to content

Commit

Permalink
Forms FileInput test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Slomski committed Jul 6, 2012
1 parent a16c9f7 commit 00030f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 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 00030f9

Please sign in to comment.