I am triggering a file upload on href click. I am trying to block all extension except doc, docx and pdf. I am not getting the correct alert value.
&
You can use
whearat
application/pdf
.pdf
application/msword
.doc
application/vnd.openxmlformats-officedocument.wordprocessingml.document
.docx
instead.
[EDIT] Be warned, .dot might match too.
.dot