I'm looking to do some feature detection with JS to determine whether or not to show a typical 'input type="file"' element on a web page that will be accessed through desktops, tablets and phones.
Ideally I want to only show the input on devices/browsers that have full access to a file system. Full, meaning access to files (as on desktop computers), not just, say, the phone's camera files.
When I hit a file input on my Android phone on a web page I'm presented with a restricted list of things I can upload. In this case, I'd need the feature detection to return false, i.e. a full access filesystem is not present... I'm doubtful that this is possible. Worth saying, user agent sniffing is a last resort and something I'd wish to avoid.