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

[Infra] S3 이미지 스토어 링크 & 프로필 이미지 업로드 API 예시 #169

Merged
merged 8 commits into from
Dec 24, 2022

Conversation

kimyoungi99
Copy link
Collaborator

No description provided.

- TODO : 이미지 접근 권환 수정
- TODO : 이미지 수정 시(POST? PUT?)
@kimyoungi99
Copy link
Collaborator Author

권환설정 완료

@kimyoungi99
Copy link
Collaborator Author

지원 파일 타입 정하고, 체크하는 로직 필요 (ex jpg 등...)

@kimyoungi99 kimyoungi99 changed the title [Feat] S3 이미지 스토어 링크 & 프로필 이미지 업로드 API [Infra] S3 이미지 스토어 링크 & 프로필 이미지 업로드 API 예시 Dec 18, 2022
@kimyoungi99 kimyoungi99 marked this pull request as ready for review December 18, 2022 04:22
Comment on lines 1 to 2
ALTER TABLE insight
ADD COLUMN image VARCHAR(255) NOT NULL
Copy link
Collaborator

Choose a reason for hiding this comment

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

왜 테이블이 인사이트..?ㅋㅋㅋ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

앗...

Comment on lines +15 to +22
@Value("${cloud.aws.credentials.accessKey}")
private String accessKey;

@Value("${cloud.aws.credentials.secretKey}")
private String secretKey;

@Value("${cloud.aws.region.static}")
private String region;
Copy link
Collaborator

Choose a reason for hiding this comment

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

슬랙에 설정 공유 부탁드려요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

어짜피 로컬 세팅만 되어있어서 다음 이슈에서 API 완성하고 한번에 수정하겠습니당~~

Copy link
Collaborator

Choose a reason for hiding this comment

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

네 알겠습니다~~

Copy link
Collaborator

Choose a reason for hiding this comment

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

근데 메인 실행하려면 필요할거같애요 ㅜ


@Override
public String upload(MultipartFile multipartFile) {
String s3FileName = UUID.randomUUID() + "-" + multipartFile.getOriginalFilename();
Copy link
Collaborator

Choose a reason for hiding this comment

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

네이밍 규칙은 메서드로 빼는게 어떨까요?

@kimyoungi99
Copy link
Collaborator Author

dev 스토어 ymal 업데이트 필요

@kimyoungi99 kimyoungi99 merged commit d03a5c5 into main Dec 24, 2022
@Youhoseong Youhoseong deleted the issue-#168 branch April 22, 2023 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants