Skip to content

Commit

Permalink
refactor: withCannedAcl private로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHanEum committed Feb 18, 2025
1 parent c04085e commit e2c151c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String upload(MultipartFile multipartFile, String logicalName, FileType f
generateUploadPath(fileDocumentToSave.getId().toString(), logicalName, fileType);
amazonS3.putObject(
new PutObjectRequest(bucketName, filePath, fileToUpload)
.withCannedAcl(CannedAccessControlList.PublicRead));
.withCannedAcl(CannedAccessControlList.Private));
removeUploadedFile(fileToUpload);
fileRepository.save(fileDocumentToSave.setPhysicalPath(filePath));
return filePath;
Expand Down

0 comments on commit e2c151c

Please sign in to comment.