Answers for "file input accept attribute"

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
1

html upload image

<input type="file" accept="image/*" />
Posted by: Guest on December-03-2020
1

accept vedio pdf files upload html

<input type="file" accept=" video/*" />
Posted by: Guest on February-19-2020

Browse Popular Code Answers by Language