Skip to content

Commit

Permalink
Merge pull request #298 from TEAM-MODDY/develop
Browse files Browse the repository at this point in the history
1.3.2 배포
  • Loading branch information
hellozo0 authored Nov 12, 2024
2 parents 3ce0048 + 50e4888 commit 660d39b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/moddy/server/external/s3/S3Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 660d39b

Please sign in to comment.