Answer the question
In order to leave comments, you need to log in
Is it possible to make sure that on Android browsers input type="file" with doc, pdf, rtf allowed for uploading does not offer to upload a photo from the camera?
The point is in the header, here's an element that only accepts "text files".
<input type="file" accept=".doc, .docx, .pdf, .rtf">
Answer the question
In order to leave comments, you need to log in
htmlbook.ru/html/input/accept
according to mime type specification. Do you have extensions
Remove accept, validate after attaching the file using JavaScript.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question