Makes the mime also work with upper case extension
Signed-off-by: pierreozoux <pierre@ozoux.net>
This commit is contained in:
parent
f862b7a1e4
commit
afc801b1c3
@ -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':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user