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

Feature 301: AWS S3 파일 업로드 기능 구현 #303

Merged
merged 10 commits into from
Jul 30, 2024
Merged

Conversation

soun997
Copy link
Collaborator

@soun997 soun997 commented Jul 30, 2024

이슈 번호 (#301)

요약

  • AWS S3 버킷에 파일을 업로드하는 기능을 구현
  • 기존 API 파라미터 수정 (RequestPart 사용)
  • 테스트 수정 및 변경된 API 문서화

Swaager에서 RequestPart를 지원하지 않음

image

  • RequestPart가 아닌 json 으로 처리됨
  • images 필드에 파일을 넣을 수 있는 방법은? => 테스트코드를 확인해주시길 바랍니다.

@soun997 soun997 added the feature 구현 사항과 관련된 이슈입니다. label Jul 30, 2024
@soun997 soun997 self-assigned this Jul 30, 2024
@soun997 soun997 merged commit bc3d188 into develop Jul 30, 2024
2 checks passed
Copy link
Collaborator

@O-Wensu O-Wensu left a comment

Choose a reason for hiding this comment

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

기존 로직도 변경하느라 고생하셨네요! 👍

Comment on lines +3 to +7
public enum AwsS3Folders {
COMMUNITY("community/"),
LIFE_CHECK("lifecheck/"),
PROFILE("profile/"),
RECIPE("recipe/");
Copy link
Collaborator

Choose a reason for hiding this comment

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

enum으로 파일 경로를 관리하면 직접 작성하지 않아도 돼서 가독성과 편의성이 좋을 것 같아요. 좋은 생각이네요!

Comment on lines +72 to +74
String fileExtension =
originalFilename.substring(originalFilename.lastIndexOf(".") + 1).toLowerCase();
List<String> allowedExtensions = Arrays.asList("jpg", "png", "gif", "jpeg");
Copy link
Collaborator

@O-Wensu O-Wensu Jul 30, 2024

Choose a reason for hiding this comment

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

구체적인 파일 확장자를 고려한 점이 좋아요!
그런데 gif 확장자는 움직이는 이미지인데, 허용 범위에 포함되는지 궁금합니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

일단 이미지 확장자는 다 넣었는데, 그건 논의해봐야 할 것 같네용

@soun997 soun997 deleted the feature-301 branch August 20, 2024 16:18
@soun997 soun997 linked an issue Oct 12, 2024 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 구현 사항과 관련된 이슈입니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] S3 이미지 업로드 처리
2 participants