We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c69d86 commit 5e42ff4Copy full SHA for 5e42ff4
2 files changed
src/game-builder/page/application/controllers/page.controller.ts
@@ -161,7 +161,7 @@ export class PageController {
161
validators: [
162
// jpeg와 png, gif 허용
163
new FileTypeValidator({
164
- fileType: /jpeg|png|gif/,
+ fileType: /jpeg|png|gif|webp|jpg/,
165
}),
166
new MaxFileSizeValidator({
167
maxSize: 3 * 1024 * 1024,
src/user/application/user.controller.ts
@@ -133,7 +133,9 @@ export class UserController {
133
@Req() request: any,
134
@UploadedFile(
135
new ParseFilePipe({
136
- validators: [new FileTypeValidator({ fileType: /jpeg|png|gif/ })],
+ validators: [
137
+ new FileTypeValidator({ fileType: /jpeg|png|gif|webp|jpg/ }),
138
+ ],
139
fileIsRequired: false,
140
141
)
0 commit comments