Skip to content

Commit

Permalink
🐛 FIX. S3 업로드 사진 일부만 저장되는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaa committed May 7, 2024
1 parent 99f57b5 commit 851c8c0
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public String uploadJpegImageFromUrl(String keyName, String imageUrl) {
InputStream inputStream = url.openStream();
ObjectMetadata metadata = new ObjectMetadata();
metadata.setContentType("image/jpeg"); // Change content type based on your image type
metadata.setContentLength(inputStream.available());

PutObjectResult putObjectResult = amazonS3.putObject(
new PutObjectRequest(amazonConfig.getBucket(), keyName, inputStream, metadata));
Expand Down

0 comments on commit 851c8c0

Please sign in to comment.