From 70fbe71086f6ff90b97d8c5c22bc8fa0cf72bea4 Mon Sep 17 00:00:00 2001 From: GwonYeong Date: Sun, 27 Apr 2025 21:36:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B2=A8?= =?UTF-8?q?=EB=A6=AC=EB=8D=B0=EC=9D=B4=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../game/application/controllers/game.controller.ts | 2 +- .../page/application/controllers/page.controller.ts | 2 +- src/user/application/user.controller.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game-builder/game/application/controllers/game.controller.ts b/src/game-builder/game/application/controllers/game.controller.ts index ce8491f..bc7968c 100644 --- a/src/game-builder/game/application/controllers/game.controller.ts +++ b/src/game-builder/game/application/controllers/game.controller.ts @@ -115,7 +115,7 @@ export class GameController { validators: [ // jpeg와 png, gif 허용 new FileTypeValidator({ - fileType: /jpeg|png|gif|webp|jpg/, + fileType: /jpeg|png|gif|webp|jpg|image\/*/, }), new MaxFileSizeValidator({ maxSize: 3 * 1024 * 1024, diff --git a/src/game-builder/page/application/controllers/page.controller.ts b/src/game-builder/page/application/controllers/page.controller.ts index 11ea709..212589a 100644 --- a/src/game-builder/page/application/controllers/page.controller.ts +++ b/src/game-builder/page/application/controllers/page.controller.ts @@ -161,7 +161,7 @@ export class PageController { validators: [ // jpeg와 png, gif 허용 new FileTypeValidator({ - fileType: /jpeg|png|gif|webp|jpg/, + fileType: /jpeg|png|gif|webp|jpg|image\/*/, }), new MaxFileSizeValidator({ maxSize: 7 * 1024 * 1024, diff --git a/src/user/application/user.controller.ts b/src/user/application/user.controller.ts index dc000e6..aa6e427 100644 --- a/src/user/application/user.controller.ts +++ b/src/user/application/user.controller.ts @@ -135,7 +135,7 @@ export class UserController { @UploadedFile( new ParseFilePipe({ validators: [ - new FileTypeValidator({ fileType: /jpeg|png|gif|webp|jpg/ }), + new FileTypeValidator({ fileType: /jpeg|png|gif|webp|jpg|image\/*/ }), ], fileIsRequired: false, }),