mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-13 06:02:19 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue