No alert on wrong filetype: FIX! Replace the file-type-check with this: if($.inArray(this.files[i].type, settings['types']) == -1) { alert("Wrong filetype selected!"); $('#'+id).val(''); /\* Clear the input value for upload button*/ return false }
No alert on wrong filetype:
FIX!
Replace the file-type-check with this:
if($.inArray(this.files[i].type, settings['types']) == -1) {
alert("Wrong filetype selected!");
$('#'+id).val(''); /* Clear the input value for upload button*/
return false
}