How to Detect File Type Using JavaScript?
Don’t be fooled by the file suffix! This article shows you how to get the real type of a file using JavaScript!