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, }),