Skip to content

Commit

Permalink
feat: S3 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
dooboocookie committed Oct 9, 2023
1 parent 8140755 commit b616566
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public String uploadFile(final MultipartFile multipartFile) {
objectMetadata.setContentType(multipartFile.getContentType());

try (final InputStream inputStream = multipartFile.getInputStream()) {
amazonS3.putObject(new PutObjectRequest(bucketName, fileName, inputStream, objectMetadata)
.withCannedAcl(CannedAccessControlList.PublicRead));
amazonS3.putObject(new PutObjectRequest(bucketName, fileName, inputStream, objectMetadata));
} catch (IOException e) {
throw new IllegalArgumentException();
}
Expand Down

0 comments on commit b616566

Please sign in to comment.