✨ [FEAT/#12] S3 이미지 파일 관리 기능 구현 #14
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 관련 이슈
📝 작업 내용
🛠 개발 상세
Controller 추가
서비스 기능 정리
uploadFile(PathName, MultipartFile): UUID로 keyName 생성하여 업로드base64UploadFile(PathName, base64Url): Base64 URL을 디코딩 후 업로드getFileUrl(String keyName): 전체 URL 반환deleteByUrl(String url): URL에서 keyName을 추출하여 삭제 (엔티티에 URL만 저장된 경우 사용)deleteFile(PathName, fileName): {prefix}/{fileName} 조합 후 삭제다른 엔티티에서의 사용 예시 (ex. Store 엔티티에서 mainImageUrl 필드를 사용하는 경우)
→
uploadImage(PathName.STORE, multipartFile)→ .getUrl() 로 URL 저장→
deleteByUrl(store.getMainImageUrl())처럼 URL 기반 삭제 호출→ URL이 이미 전체 경로이므로 따로 변환 불필요
✔️ 체크 리스트
📸 스크린샷 (선택)
➕ 추후 계획(선택)