-
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
[Infra] S3 이미지 스토어 링크 & 프로필 이미지 업로드 API 예시 #169
Conversation
- TODO : 이미지 접근 권환 수정 - TODO : 이미지 수정 시(POST? PUT?)
권환설정 완료 |
지원 파일 타입 정하고, 체크하는 로직 필요 (ex jpg 등...) |
ALTER TABLE insight | ||
ADD COLUMN image VARCHAR(255) NOT NULL |
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.
왜 테이블이 인사이트..?ㅋㅋㅋ
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.
앗...
@Value("${cloud.aws.credentials.accessKey}") | ||
private String accessKey; | ||
|
||
@Value("${cloud.aws.credentials.secretKey}") | ||
private String secretKey; | ||
|
||
@Value("${cloud.aws.region.static}") | ||
private String region; |
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.
슬랙에 설정 공유 부탁드려요
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.
어짜피 로컬 세팅만 되어있어서 다음 이슈에서 API 완성하고 한번에 수정하겠습니당~~
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.
네 알겠습니다~~
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.
근데 메인 실행하려면 필요할거같애요 ㅜ
|
||
@Override | ||
public String upload(MultipartFile multipartFile) { | ||
String s3FileName = UUID.randomUUID() + "-" + multipartFile.getOriginalFilename(); |
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.
네이밍 규칙은 메서드로 빼는게 어떨까요?
dev 스토어 ymal 업데이트 필요 |
No description provided.