I am trying to make a web application where I want to validate the file extension even after name change on File Upload Control, I did some research and found Dataview solution but it is still with some lack since I found extension doc, xls, msi with the same Header Signature. If you can help me out with this it would be great. I can't use server side code since it has to be validate before uploading file. My main Goal is to Prevent the User from Uploading the Wrong File Type on any Condition.
For This Application I tried.,
Get Signature using Jquery and Dataview but i have gotten same Header Signature for doc,xls and msi file so i stopped to it
Get content type of 'File' object using javascript
FileSignature.net to Identify Signature based on Extensions.
Used urlmon.dll to get Mimetype but i have gotten same Mimetype for docx,xlsx and zip
Winista ----http://www.netomatix.com/Products/DocumentManagement/MimeDetector.aspx
Used FileTypeDetective to Validate File.