UploadQueue: more correct HEIC extension check
This commit is contained in:
parent
229fb9e5bf
commit
3ed84eb4d5
@ -18,7 +18,7 @@ class UploadQueue {
|
|||||||
this.submit.disabled = false;
|
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.');
|
alert('Sorry, the HEIC image format is not supported.\nPlease convert your photos to JPEG before uploading.');
|
||||||
this.hideSpinner();
|
this.hideSpinner();
|
||||||
this.submit.disabled = false;
|
this.submit.disabled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user