Change upload options for <input type="file" accept="image/*"> in website when viewed from an android device

Viewed 283

It is a responsive website using javascript, angularjs.

Is it possible to change the default upload options for <input type="file" accept="image/*"> in the website when viewed from an android device? The current options are camera, camcorder, recorder and files as the last option enter image description here.

I would like to change it to gallery, google photos, files, or something else useful.

Or is it only possible for mobile apps?

1 Answers

I think the apps available are based on the type of file you are accepting. Try adding the accept attribute.

<input type="file" accept="image/*">

Basically the accept attribute tells the field what type of files should be accepted here. "image/*" says that all types of images are allowed. You can also specify specific extensions. Go here for more info

Related