SUMMARY:
I am designing an image upload for android chrome that has a separate mechanism for camera and dialog box select file. This is a UX decision in an attempt to make action options uniform across mobile devices accessing our website.
DETAIL:
We can force the camera through the following code
<input type="file" capture="camera">
But for dialog box only upload, it seems its not possible to do this with the following:
<input type="file" accept="image/jpeg, image/jpg" multiple>
Opening it results to an option of camera & browse file.
I only intend the dialog box for existing images, how do we force this in html5?
DONE SO FAR:
I looked into similar topics and even accepted solution in stackoverflow but they were NOT able to solve it. It always triggers the options as shown in the figure above.
File dialog from JavaScript *without* <input>
Upload image tag source without using file input
How to disable/block a device from asking "Take photo" option during file uploads