I am using a file type input. It should accept pdf, doc and docx file formats. So I added the following input tag -
<input type="file" accept=".pdf,.doc,.docx">
This works as expected on desktop i.e. It shows only these files on file browser. But on android devices it prompts the user to select either file browser or camera. Since we are not accepting image files I want to disable the camera option. I know the user can override the accept
attribute and select any file he wishes, for this I have put javascript validation. But is there any way to disable the camera option on mobile devices? I am looking for something opposite to capture="camera"
.