File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export enum TemplateEngine {
38
38
}
39
39
40
40
export const FileType : Record < keyof typeof FileSize , RegExp > = {
41
- IMAGE : / ( j p g | j p e g | p n g | g i f | s v g ) $ / i,
41
+ IMAGE : / ( j p g | j p e g | p n g | s v g | w e b p | g i f | s v g ) $ / i,
42
42
DOC : / ( p d f | d o c | t x t | k e y | c s v | d o c x | x l s | x l s x | p p t | p p t x ) $ / i,
43
43
} ;
44
44
Original file line number Diff line number Diff line change 1
1
import type { FileValidator } from "@common/@types" ;
2
2
import { FileSize , FileType } from "@common/@types" ;
3
3
import { MULTER_IMAGE_FILTER } from "@common/constant" ;
4
- import { HttpStatus , ParseFilePipeBuilder } from "@nestjs/common" ;
4
+ import { HttpStatus , ParseFilePipeBuilder , UnprocessableEntityException } from "@nestjs/common" ;
5
5
import type { MulterOptions } from "@nestjs/platform-express/multer/interfaces/multer-options.interface" ;
6
6
import { memoryStorage } from "multer" ;
7
7
You can’t perform that action at this time.
0 commit comments