mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
Merge pull request #509 from pierreozoux/quick-fix
Makes the mime also work with upper case extension
This commit is contained in:
commit
dcdb6c1f96
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