UploadQueue: more correct HEIC extension check

This commit is contained in:
Aaron van Geffen 2023-03-12 11:47:36 +01:00
parent 229fb9e5bf
commit 3ed84eb4d5

View File

@ -18,7 +18,7 @@ class UploadQueue {
this.submit.disabled = false;
};
if (this.queue.files[0].name.includes(".HEIC")) {
if (this.queue.files[0].name.toUpperCase().endsWith(".HEIC")) {
alert('Sorry, the HEIC image format is not supported.\nPlease convert your photos to JPEG before uploading.');
this.hideSpinner();
this.submit.disabled = false;