Permalink
Browse files

merging upload.js docs into forms-fileinput

  • Loading branch information...
1 parent 45bdc31 commit 91ceb94f79224d900e928408c07b293d4bdd7d18 @paulirish paulirish committed Jul 19, 2012
Showing with 5 additions and 16 deletions.
  1. +5 −0 feature-detects/forms-fileinput.js
  2. +0 −16 feature-detects/upload.js
@@ -1,6 +1,11 @@
+
+
// Detects whether input type="file" is available on the platform
// E.g. iOS < 6 and some android version don't support this
+// It's useful if you want to hide the upload feature of your app on devices that
+// don't support it (iphone, ipad, etc).
+
Modernizr.addTest('fileinput', function() {
var elem = document.createElement('input');
elem.type = 'file';
View
@@ -1,16 +0,0 @@
-/**
- * File upload support
- *
- * It's useful if you want to hide the upload feature of your app on devices that
- * don't support it (iphone, ipad, etc).
- *
- * Detection is made by testing if the new created upload field is disabled or not.
- * If it's disabled, most likely the browser does not support upload.
- *
- * By Mircea Georgescu
- */
-Modernizr.addTest('upload', function(){
- var el = document.createElement('input');
- el.setAttribute('type', 'file');
- return !el.disabled;
-});

0 comments on commit 91ceb94

Please sign in to comment.