From 2f90e594331b2143e4e0f25786d83732a7c46c38 Mon Sep 17 00:00:00 2001 From: hellozo0 Date: Wed, 13 Nov 2024 00:11:41 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20HEIC=20=ED=99=95=EC=9E=A5=EC=9E=90=20?= =?UTF-8?q?=ED=95=B8=EB=93=A4=EB=A7=81=20=EA=B0=80=EB=8A=A5=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/moddy/server/external/s3/S3Service.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/moddy/server/external/s3/S3Service.java b/src/main/java/com/moddy/server/external/s3/S3Service.java index 29128d0f..2620ba6b 100644 --- a/src/main/java/com/moddy/server/external/s3/S3Service.java +++ b/src/main/java/com/moddy/server/external/s3/S3Service.java @@ -7,6 +7,7 @@ import com.amazonaws.services.s3.model.ResponseHeaderOverrides; import com.moddy.server.domain.user.Role; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; @@ -101,6 +102,8 @@ private String getFileExtension(String fileName) { fileValidate.add(".JPG"); fileValidate.add(".JPEG"); fileValidate.add(".PNG"); + fileValidate.add(".HEIC"); + fileValidate.add(".heic"); String idxFileName = fileName.substring(fileName.lastIndexOf(".")); if (!fileValidate.contains(idxFileName)) throw new IllegalArgumentException();