diff options
author | David Mehren | 2020-11-13 17:17:47 +0100 |
---|---|---|
committer | GitHub | 2020-11-13 17:17:47 +0100 |
commit | dcdb6c1f964814643276662439a45364a6337422 (patch) | |
tree | 2e364a8a13d72c5eebf79a4060c067a76c41b17f /lib | |
parent | 7560943a44330acca36b5f95a612efe351b5345d (diff) | |
parent | afc801b1c381ba3bee50af1357e9d26d8ccc3b7b (diff) |
Merge pull request #509 from pierreozoux/quick-fix
Makes the mime also work with upper case extension
Diffstat (limited to '')
-rw-r--r-- | lib/utils.js | 2 |
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': |