From 0b0d47acb83309df8eb13ba51d6bab81c5269c15 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 11 Mar 2023 21:36:32 +0100 Subject: [PATCH] UploadQueue: error out of HEIC files are presented --- public/js/upload_queue.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/js/upload_queue.js b/public/js/upload_queue.js index 75b237d..a0953ff 100644 --- a/public/js/upload_queue.js +++ b/public/js/upload_queue.js @@ -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); };