From b3df32557c5039bfca74ee1c2e2bc2e477fca9e7 Mon Sep 17 00:00:00 2001 From: SEONG JUN SHIN Date: Sun, 25 Feb 2024 02:33:28 +0900 Subject: [PATCH] test: set the image type to jpeg --- src/main/java/gdsc/pointer/service/ImageService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/gdsc/pointer/service/ImageService.java b/src/main/java/gdsc/pointer/service/ImageService.java index 3f0ca4f..0a942e2 100644 --- a/src/main/java/gdsc/pointer/service/ImageService.java +++ b/src/main/java/gdsc/pointer/service/ImageService.java @@ -39,7 +39,8 @@ public class ImageService { public String uploadImage(MultipartFile file) throws IOException { String uuid = UUID.randomUUID().toString(); // Google Cloud Storage에 저장될 파일 이름 - String ext = file.getContentType(); // 파일의 형식 ex) JPG +// String ext = file.getContentType(); // 파일의 형식 ex) JPG + String ext = "image/jpeg"; // Cloud에 이미지 업로드 BlobInfo blobInfo = storage.create(