isImage, isVideo... checks are not strict enough (line 1114):
isVideo: !!~data.type.toLowerCase().indexOf('video')
isAudio: !!~data.type.toLowerCase().indexOf('audio')
isImage: !!~data.type.toLowerCase().indexOf('image')
isText: !!~data.type.toLowerCase().indexOf('text')
isJSON: !!~data.type.toLowerCase().indexOf('json')
isPDF: !!~data.type.toLowerCase().indexOf('pdf')
for example the file type for .iso images is application/iso-image, application/x-iso-image or application/x-iso9660-image, all of which trigger isImage (wrongly).
At least for image, it should be checked with something along the lines of data.type.toLowerCase().startsWith("image/") IMO.
isImage,isVideo... checks are not strict enough (line 1114):for example the file type for .iso images is
application/iso-image,application/x-iso-imageorapplication/x-iso9660-image, all of which triggerisImage(wrongly).At least for
image, it should be checked with something along the lines ofdata.type.toLowerCase().startsWith("image/")IMO.