UploadQueue: error out of HEIC files are presented

This commit is contained in:
Aaron van Geffen 2023-03-11 21:36:32 +01:00
parent a4cc528951
commit 0b0d47acb8

View File

@ -17,6 +17,14 @@ UploadQueue.prototype.addEvents = function() {
that.hideSpinner();
that.submit.disabled = false;
};
if (that.queue.files[0].name.includes(".HEIC")) {
alert('Sorry, the HEIC image format is not supported.\nPlease convert your photos to JPEG before uploading.');
that.hideSpinner();
that.submit.disabled = false;
break;
}
that.addPreviewBoxForQueueSlot(i);
that.addPreviewForFile(that.queue.files[i], i, callback);
};