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.
&
Below code worked for me:
application/pdf means .pdf application/msword means .doc application/vnd.openxmlformats-officedocument.wordprocessingml.document means .docx