Upload button on mobile to open only the camera, not the gallery.

Hi there, Im building a system that the user has to upload photos. I don’t want them to open the gallery of the phone, I just want them to take new pictures.
Does any one knows how to disable the gallery option when the upload button is clicked?

Thanks !

1 Like

Pretty much the only the way of accessing things like the camera, is using a flash element, that passes info to an HTML iFrame and then to wherever you want the video/audio to go.

You can only set your upload button to upload images, documents, or videos using the fileType property. The file types of the images, documents, and videos that can be uploaded are listed here .

1 Like