Comic reader: ignore special files originating from Apple devices

pull/2500/head
viljasenville 2 years ago
parent a3f7dc2a5a
commit 46e5305f23

@ -163,6 +163,14 @@ kthoom.ImageFile = function(file) {
this.mimeType = undefined;
break;
}
// Reset mime type for special files originating from Apple devices
// This folder may contain files having image extensions (for example .jpg) but those files are not actual images
// Trying to view these files cause corrupted/empty pages in the comic reader and files should be ignored
if (this.filename.indexOf("__MACOSX") !== -1) {
this.mimeType = undefined;
}
if ( this.mimeType !== undefined) {
this.dataURI = createURLFromArray(file.fileData, this.mimeType);
}

Loading…
Cancel
Save