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
What I want to do is to check the actual file type
Try accessing files[0].type property . See Using files from web applications
files[0].type
$(":file").on("change", function(e) { console.log(this.files[0].type); })