Skip to content

Commit 4c96a9e

Browse files
committed
fix: 필터 제거
1 parent 6335c04 commit 4c96a9e

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

src/game-builder/game/application/controllers/game.controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ export class GameController {
114114
new ParseFilePipe({
115115
validators: [
116116
// jpeg와 png, gif 허용
117-
new FileTypeValidator({
118-
fileType: /^image\/|jpeg|png|gif|webp|jpg$/,
119-
}),
120117
new MaxFileSizeValidator({
121118
maxSize: 3 * 1024 * 1024,
122119
}),

src/game-builder/page/application/controllers/page.controller.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ export class PageController {
160160
new ParseFilePipe({
161161
validators: [
162162
// jpeg와 png, gif 허용
163-
new FileTypeValidator({
164-
fileType: /^image\/|jpeg|png|gif|webp|jpg$/,
165-
}),
163+
166164
new MaxFileSizeValidator({
167165
maxSize: 7 * 1024 * 1024,
168166
}),

src/user/application/user.controller.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ export class UserController {
134134
@Req() request: any,
135135
@UploadedFile(
136136
new ParseFilePipe({
137-
validators: [
138-
new FileTypeValidator({
139-
fileType: /^image\/|jpeg|png|gif|webp|jpg$/,
140-
}),
141-
],
137+
validators: [],
142138
fileIsRequired: false,
143139
}),
144140
)

0 commit comments

Comments
 (0)