forms-fileinput.js 402 B

12345678910111213
  1. // Detects whether input type="file" is available on the platform
  2. // E.g. iOS < 6 and some android version don't support this
  3. // It's useful if you want to hide the upload feature of your app on devices that
  4. // don't support it (iphone, ipad, etc).
  5. Modernizr.addTest('fileinput', function() {
  6. var elem = document.createElement('input');
  7. elem.type = 'file';
  8. return !elem.disabled;
  9. });