From 2df2cf5e2f675c362398d412350539edffe0b50f Mon Sep 17 00:00:00 2001 From: sycuuui <102959791+sycuuui@users.noreply.github.com> Date: Tue, 21 May 2024 19:19:39 +0900 Subject: [PATCH] fix : s3 update mosaicFileName --- .../com/capic/server/domain/video/service/VideoService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/capic/server/domain/video/service/VideoService.java b/src/main/java/com/capic/server/domain/video/service/VideoService.java index 626bc1f..98c81b3 100644 --- a/src/main/java/com/capic/server/domain/video/service/VideoService.java +++ b/src/main/java/com/capic/server/domain/video/service/VideoService.java @@ -208,9 +208,10 @@ public String getContentType() { return "video/mp4"; // 동영상의 MIME 타입을 video/mp4로 설정 } }; + String mosaicVideoName = videoReq.videoName().split(".")[0]+"_mosaic.mp4"; // S3에 파일 업데이트 - s3Client.update(folderName + "/" + videoReq.videoName()+"_mosaic", multipartFile); - return VideoRes.of(folderName, videoReq.videoName()+"_mosaic", null); + s3Client.update(folderName + "/" + mosaicVideoName, multipartFile); + return VideoRes.of(folderName, mosaicVideoName, null); } //flask에 이미지, 동영상 보내기 test