Skip to content

Commit

Permalink
Merge pull request Modernizr#626 from sebslomski/master
Browse files Browse the repository at this point in the history
Forms FileInput
  • Loading branch information
paulirish committed Jul 19, 2012
2 parents 3a844a1 + 187b331 commit 989747b
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 989747b

Please sign in to comment.