Skip to content

Commit

Permalink
Merge pull request #41 from saessagMarket/feat/#40-photo-url-fix
Browse files Browse the repository at this point in the history
refactor: 사진 업로드시 반환 URL 변경
  • Loading branch information
JunBe authored Jan 18, 2025
2 parents 3c5f628 + 068cf06 commit 7a12c63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public String uploadFile(MultipartFile file) throws IOException{

tempFile.delete();

return String.format("https://%s.s3.%s.amazonaws.com/%s", bucketName, region, fileName);
return fileName;
} catch (S3Exception e) {
throw new RuntimeException("S3에 파일 업로드 중 문제가 발생했습니다. : " + e.getMessage(), e);
}
Expand Down

0 comments on commit 7a12c63

Please sign in to comment.