From a0ba46caf46195be1b20c776f44495cbf31f5971 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Wed, 8 Feb 2023 13:38:53 +0100 Subject: [PATCH] cope with CAPITALIZED file suffix --- public/scripts/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/util.js b/public/scripts/util.js index 5c8831c..439dd5c 100644 --- a/public/scripts/util.js +++ b/public/scripts/util.js @@ -81,7 +81,7 @@ const mime = (() => { getMimeByFilename(filename) { try { const arr = filename.split('.'); - const suffix = arr[arr.length - 1]; + const suffix = arr[arr.length - 1].toLowerCase(); return { "cpl": "application/cpl+xml", "gpx": "application/gpx+xml",