Skip to content

Commit

Permalink
Fix :: s3 ACL error
Browse files Browse the repository at this point in the history
  • Loading branch information
priverg committed Jun 13, 2024
1 parent 7a3cd2d commit 4c5d7f4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ private String upload(File uploadFile, String dirName) {
private String putS3(File uploadFile, String fileName) {
amazonS3Client.putObject(
new PutObjectRequest(bucket, fileName, uploadFile)
.withCannedAcl(CannedAccessControlList.PublicRead) // PublicRead 권한으로 업로드 됨
);
return amazonS3Client.getUrl(bucket, fileName).toString();
}
Expand Down

0 comments on commit 4c5d7f4

Please sign in to comment.