input type file allow only pdf
<input type="file" id="test" name="test" accept=".pdf,.doc"/>
input type file allow only pdf
<input type="file" id="test" name="test" accept=".pdf,.doc"/>
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us