O
O
origami10242020-09-12 23:09:35
Android
origami1024, 2020-09-12 23:09:35

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">

The android browser requires permission to shoot and record audio and offers to launch the camera.
Is it possible to somehow make it possible to select only from the available files in the file system at once?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2020-09-13
@402d

htmlbook.ru/html/input/accept
according to mime type specification. Do you have extensions

N
Nadim Zakirov, 2020-09-13
@zkrvndm

Remove accept, validate after attaching the file using JavaScript.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question