Newbie here. The problem is that I currently have written a method which checks uploaded file size and extension in order to validate it. However, checking extensions is not a s
Here is a quick tip if you just want to know if the file is an image:
var file = this.files[0]; var fileType = file["type"]; if (fileType.search('image') >= 0) { ... }