Created
April 4, 2012 14:19
-
-
Save sonnyp/2301495 to your computer and use it in GitHub Desktop.
On Safari mobile file input are disabled, this function check whether it's supported or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fileInputSupport() { | |
var input = document.createElement('input'); | |
input.type = 'file'; | |
return !input.disabled; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment