diff --git a/back/src/auth/auth.controller.ts b/back/src/auth/auth.controller.ts index 80ba7a0..2cd490d 100644 --- a/back/src/auth/auth.controller.ts +++ b/back/src/auth/auth.controller.ts @@ -115,16 +115,13 @@ export class AuthController { .addFileTypeValidator({ fileType: 'jpeg', }) - .addMaxSizeValidator({ - maxSize: 5000, - }) .build({ errorHttpStatusCode: HttpStatus.UNPROCESSABLE_ENTITY, }), ) file: Express.Multer.File, ) { - const path = `/data/${req.user.id}.png`; + const path = `/data/${req.user.id}.jpg` writeFile(path, file.buffer, (err) => { if (err) throw err; });