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.
&
For only acept files with extension doc and docx in the explorer window try this