Switch needs to use lowercase variants.
This commit is contained in:
@@ -50,7 +50,7 @@ const logger = new Logger('AssetUploadConfig');
|
||||
|
||||
function getMimeType(file: Express.Multer.File) {
|
||||
const extension = file.originalname.split('.').pop() as string;
|
||||
switch (extension) {
|
||||
switch (extension.toLowerCase()) {
|
||||
case 'raf':
|
||||
return 'image/x-fuji-raf';
|
||||
case 'srw':
|
||||
|
||||
@@ -68,7 +68,7 @@ export const fileUploadHandler = async (
|
||||
|
||||
function getMimeType(file: File) {
|
||||
const extension = file.name.split('.').pop() as string;
|
||||
switch (extension) {
|
||||
switch (extension.toLowerCase()) {
|
||||
case 'raf':
|
||||
return 'image/x-fuji-raf';
|
||||
case 'srw':
|
||||
|
||||
Reference in New Issue
Block a user