From 3ed84eb4d5a8e0702a3204e165e12209ce492f77 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 12 Mar 2023 11:47:36 +0100 Subject: [PATCH] UploadQueue: more correct HEIC extension check --- public/js/upload_queue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/upload_queue.js b/public/js/upload_queue.js index 54384f6..506a64b 100644 --- a/public/js/upload_queue.js +++ b/public/js/upload_queue.js @@ -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;