Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] fix: 이미지 용량 제한을 5MB로 설정 #643

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

takoyakimchi
Copy link
Contributor

@takoyakimchi takoyakimchi commented Oct 11, 2024

이슈

개발 사항

  • (기존) 1MB 초과하는 이미지 업로드 불가
  • (변경) 5MB 초과하는 이미지 업로드 불가

전달 사항 (없으면 삭제해 주세요)

@takoyakimchi takoyakimchi added 🤹 enhance 성능 개선 🛠️ refactor 리팩터링 🖥 backend backend labels Oct 11, 2024
@takoyakimchi takoyakimchi added this to the Sprint6 milestone Oct 11, 2024
@takoyakimchi takoyakimchi self-assigned this Oct 11, 2024
Copy link

github-actions bot commented Oct 11, 2024

Test Results

196 tests   196 ✅  17s ⏱️
 44 suites    0 💤
 44 files      0 ❌

Results for commit 706efc2.

♻️ This comment has been updated with latest results.

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jimi567
jimi567 previously approved these changes Oct 14, 2024
Comment on lines 2 to 5
servlet:
multipart:
max-file-size: 6MB
max-request-size: 6MB
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여긴 왜 6mb로 제한이 되나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multipart단에서 터지면 예외메시지가 불친절하게 나옵니다

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헉 근데 15MB 이래버리면 어차피 nginx에서 터지네요.. 필요 없을것같기도 하고

Copy link
Contributor

@J-I-H-O J-I-H-O Oct 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

가장 바깥 단에서 막을 수도 있는걸 의도적으로 비즈니스 코드까지 들어오도록 허용하는게 최선인지는 잘 모르겠습니다 🥸

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅇㅈ합니다 필요 없을듯

ehtjsv2
ehtjsv2 previously approved these changes Oct 14, 2024
@takoyakimchi takoyakimchi dismissed stale reviews from ehtjsv2 and jimi567 via 706efc2 October 14, 2024 11:46
Copy link
Member

@jimi567 jimi567 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿굿 수정사항 확인 완료

@takoyakimchi takoyakimchi merged commit fd33b1f into develop Oct 14, 2024
3 checks passed
@takoyakimchi takoyakimchi deleted the feature/#641 branch October 14, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥 backend backend 🤹 enhance 성능 개선 🛠️ refactor 리팩터링
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

이미지 업로드 용량 제한을 5MB로 높인다.
5 participants