Answers for "input type=file'' accept only pdf"

0

input type file allow only pdf

<input type="file" id="test" name="test" accept=".pdf,.doc"/>
Posted by: Guest on November-06-2020
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 only pdf"

Browse Popular Code Answers by Language