Answers for "html input accept file type"

21

only accept image file input

<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
Posted by: Guest on February-19-2020
1

html input type file accept text and word files

<input type="file" name="uploaded_file" accept=".txt, text/plain, .doc, .docx, application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
Posted by: Guest on May-29-2021
3

input limit file type html

<!-- (IE 10+, Edge (EdgeHTML), Edge (Chromium), Chrome, Firefox 42+) -->
<input type="file" accept=".jpg,.png,.pdf" />
Posted by: Guest on February-10-2020

Code answers related to "html input accept file type"

Browse Popular Code Answers by Language