I would like to upload a image using safari on ipad here is my html code
<input type="file" accept="image/*">
When i try to select a file, safari prompt me to choose "take photo" or "select existed file", how can i disable the "take photo" options, and just select an existing file?
I also look up w3c document, and try codes below, but not work
<input type="file" accept="image/*" capture="filesystem">
According to this HTML5 compatibility comparator, Safari supports only partially the media capture feature: it complies with the accept
attribute but ignores the catpure
attribute.
So I am afraid you will have to wait for a better support from Safari before it works the way you want...
What's more, according to the W3C specifications:
When the capture attribute is specified, the user agent SHOULD invoke a file picker of the specific capture control type.
The keyword SHOULD means that Safari can choose not to follow the recommendation for some reason and still claim to be compliant with the standard...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With