summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/forms-fileinput.js
blob: b33eb97778f907837c7ef79ff2fa8640180ef5a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13


// 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';
    return !elem.disabled;
});