iOS Safari Restrict Image Upload
forms, ios, safari
Solution
You can disable video so that the choice is only between:
"Take Photo"
"Choose Existing"
by adding /* to the accept attribute in your html:
<input type="file" accept="image/*" capture="camera" />
Customizations are therefore possible, in the browser at least. I'll update if I find more.
Problem
I know apple provide some attribues to use in HTML to make your web app work better with Safari on iOS. I was wondering now iOS 6 supports media uploading with the file inputs, at the moment if you select it you get two options: ``` "Take Photo or Video" "Choose Existing" ``` I was wondering if I can set the browser to only show "Take Photo or Video"? I know I've seen some fancy Safari options before I was wondering if Apple gives you this much control? Let me know if you guys have seen anything on this. I would love to remove choose existing just because of the functionality I'd like to provide.