diff --git a/src/main/java/com/climingo/climingoApi/record/api/.gitkeep b/src/main/java/com/climingo/climingoApi/record/api/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/java/com/climingo/climingoApi/upload/S3Service.java b/src/main/java/com/climingo/climingoApi/upload/S3Service.java index 63ce88a..d32cd45 100644 --- a/src/main/java/com/climingo/climingoApi/upload/S3Service.java +++ b/src/main/java/com/climingo/climingoApi/upload/S3Service.java @@ -43,7 +43,7 @@ public String uploadVideoFile(MultipartFile videoFile) throws IOException { URL videoUrl = generatePermanentPresignedUrl(fileName.toString()); - return videoUrl.toString(); + return videoUrl.toString().substring(0, videoUrl.toString().indexOf("?")); } private File convertMultipartFileToFile(MultipartFile file) throws IOException { @@ -73,6 +73,8 @@ public String uploadImageFile(File image) { CannedAccessControlList.PublicRead)); image.delete(); - return generatePermanentPresignedUrl(fileName.toString()).toString(); + URL url = generatePermanentPresignedUrl(fileName.toString()); + + return url.toString().substring(0, url.toString().indexOf("?")); } }