From db34f2f7fd406563acb3833d37c5240477467888 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 5 Dec 2022 12:05:02 -0600 Subject: [PATCH] fix(server) fix correct MIME type for Nikon NEF (#1060) --- server/apps/immich/src/config/asset-upload.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/apps/immich/src/config/asset-upload.config.ts b/server/apps/immich/src/config/asset-upload.config.ts index b399e9352aa63..fef4de210f4d8 100644 --- a/server/apps/immich/src/config/asset-upload.config.ts +++ b/server/apps/immich/src/config/asset-upload.config.ts @@ -23,7 +23,9 @@ function fileFilter(req: Request, file: any, cb: any) { return cb(new UnauthorizedException()); } if ( - file.mimetype.match(/\/(jpg|jpeg|png|gif|mp4|x-msvideo|quicktime|heic|heif|dng|x-adobe-dng|webp|tiff|3gpp|nef)$/) + file.mimetype.match( + /\/(jpg|jpeg|png|gif|mp4|x-msvideo|quicktime|heic|heif|dng|x-adobe-dng|webp|tiff|3gpp|nef|x-nikon-nef)$/, + ) ) { cb(null, true); } else {