Skip to content

Commit

Permalink
test: set the image type to jpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsj4653 committed Feb 24, 2024
1 parent 8ed44f1 commit b3df325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gdsc/pointer/service/ImageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b3df325

Please sign in to comment.