-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature 301: AWS S3 파일 업로드 기능 구현 #303
Conversation
1. 이미지는 필수 파라미터가 아님 2. 의존성 주입을 위한 final 키워드 누락
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기존 로직도 변경하느라 고생하셨네요! 👍
public enum AwsS3Folders { | ||
COMMUNITY("community/"), | ||
LIFE_CHECK("lifecheck/"), | ||
PROFILE("profile/"), | ||
RECIPE("recipe/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum으로 파일 경로를 관리하면 직접 작성하지 않아도 돼서 가독성과 편의성이 좋을 것 같아요. 좋은 생각이네요!
String fileExtension = | ||
originalFilename.substring(originalFilename.lastIndexOf(".") + 1).toLowerCase(); | ||
List<String> allowedExtensions = Arrays.asList("jpg", "png", "gif", "jpeg"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
구체적인 파일 확장자를 고려한 점이 좋아요!
그런데 gif 확장자는 움직이는 이미지인데, 허용 범위에 포함되는지 궁금합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
일단 이미지 확장자는 다 넣었는데, 그건 논의해봐야 할 것 같네용
이슈 번호 (#301)
요약
RequestPart
사용)Swaager에서
RequestPart
를 지원하지 않음RequestPart
가 아닌 json 으로 처리됨