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 simply make it by REGEX:
Form:
Only PDF allowed!
And java script validation:
Cheers!