Skip to content

Commit

Permalink
Merge pull request #47 from 7th-UMC/feature/45
Browse files Browse the repository at this point in the history
Feat : 이미지 url에 확장자 추가
  • Loading branch information
hyeonda02 authored Aug 29, 2024
2 parents 39a3c71 + 2a1a599 commit 913c21c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hsu/umc/server/aws/s3/AmazonS3Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public String uploadFile(String keyName, MultipartFile file)throws IOException {
return amazonS3.getUrl(amazonConfig.getBucket(),keyName).toString();
}
public String generatePhotoKeyName(Uuid uuid) {
return amazonConfig.getPhotoPath() + '/' + uuid.getUuid();
return amazonConfig.getPhotoPath() + '/' + uuid.getUuid() + ".png";
}

}

0 comments on commit 913c21c

Please sign in to comment.