Skip to content
This repository
Browse code

merging upload.js docs into forms-fileinput

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

0 comments on commit 91ceb94

Please sign in to comment.
Something went wrong with that request. Please try again.