summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpierreozoux2020-09-29 19:12:29 +0200
committerpierreozoux2020-11-12 21:06:09 +0100
commitafc801b1c381ba3bee50af1357e9d26d8ccc3b7b (patch)
tree0f3684837ffa4c88b2946c1a88737e2357a24168 /lib
parentf862b7a1e44c1101a921f19bca4d8d8063eb25ce (diff)
Makes the mime also work with upper case extension
Signed-off-by: pierreozoux <pierre@ozoux.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js
index 270cbd6a..23873ffc 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -7,7 +7,7 @@ exports.isSQLite = function isSQLite (sequelize) {
exports.getImageMimeType = function getImageMimeType (imagePath) {
var fileExtension = /[^.]+$/.exec(imagePath)
- switch (fileExtension[0]) {
+ switch (fileExtension[0].toLowerCase()) {
case 'bmp':
return 'image/bmp'
case 'gif':