mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
fix(server) fix correct MIME type for Nikon NEF (#1060)
This commit is contained in:
parent
5de8ea162d
commit
db34f2f7fd
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue