Skip to content

Commit

Permalink
[BE] fix: 이미지 용량 제한을 5MB로 설정 (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
takoyakimchi committed Oct 23, 2024
1 parent 4d31b2c commit 11ff965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class S3StorageManager implements FileStorageManager {

private static final String IMAGE_MIME_TYPE_PREFIX = "image/";
private static final int FILE_SIZE_LIMIT = 1;
private static final int FILE_SIZE_LIMIT = 5;
private static final int MB = 1_048_576;

@Value("${aws.s3.bucket-name}")
Expand Down
4 changes: 4 additions & 0 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
spring:
servlet:
multipart:
max-file-size: 5MB
max-request-size: 5MB
jpa:
defer-datasource-initialization: true
application:
Expand Down

0 comments on commit 11ff965

Please sign in to comment.