Skip to content

Commit

Permalink
merge #304: 누락된 이미지 크기 수정 추가
Browse files Browse the repository at this point in the history
[fix] 누락된 이미지 크기 수정 추가
  • Loading branch information
yaongmeow authored Dec 7, 2023
2 parents 112e3b2 + 29e28c9 commit 7dca7ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion BE/src/timelines/timelines.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class TimelinesController {
constructor(private readonly timelinesService: TimelinesService) {}

@Post()
@UseInterceptors(FileInterceptor('image'))
@UseInterceptors(
FileInterceptor('image', { limits: { fileSize: 1024 * 1024 * 10 } })
)
@ApiOperation({
summary: '타임라인 생성',
description: '사용자가 입력한 정보를 토대로 새로운 타임라인을 생성합니다.',
Expand Down
2 changes: 1 addition & 1 deletion BE/src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class UsersController {
},
})
@UseInterceptors(
FileInterceptor('image', { limits: { fileSize: 1024 * 1024 * 2 } })
FileInterceptor('image', { limits: { fileSize: 1024 * 1024 * 10 } })
)
@ApiConsumes('multipart/form-data')
@ApiBody({
Expand Down

0 comments on commit 7dca7ef

Please sign in to comment.