mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Add x-adobe-dng to support file type (#504)
This commit is contained in:
		@@ -9,7 +9,7 @@ import { randomUUID } from 'crypto';
 | 
			
		||||
 | 
			
		||||
export const assetUploadOption: MulterOptions = {
 | 
			
		||||
  fileFilter: (req: Request, file: any, cb: any) => {
 | 
			
		||||
    if (file.mimetype.match(/\/(jpg|jpeg|png|gif|mp4|x-msvideo|quicktime|heic|heif|dng|webp)$/)) {
 | 
			
		||||
    if (file.mimetype.match(/\/(jpg|jpeg|png|gif|mp4|x-msvideo|quicktime|heic|heif|dng|x-adobe-dng|webp)$/)) {
 | 
			
		||||
      cb(null, true);
 | 
			
		||||
    } else {
 | 
			
		||||
      cb(new HttpException(`Unsupported file type ${extname(file.originalname)}`, HttpStatus.BAD_REQUEST), false);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user