Answers for "input type=file'' accept docx"

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
0

input type=file'' accept only doc and pdf

<input #fileInput type="file" id="avatar" accept="application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document" />

application/pdf means .pdf
application/msword means .doc
application/vnd.openxmlformats-officedocument.wordprocessingml.document means .docx
Posted by: Guest on May-01-2021

Code answers related to "input type=file'' accept docx"

Browse Popular Code Answers by Language