Skip to content

Commit

Permalink
fix : multipartFile 변환
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed May 3, 2024
1 parent 284b19f commit 8e54a7c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ public String getFilename() {
// Flask에서 반환된 파일을 다시 클라이언트에게 반환
ByteArrayResource resource = new ByteArrayResource(response.getBody());

//여기에 나중에 update 구현
s3Client.update(folderName + "/" + videoReq.videoName(), (MultipartFile) resource);
ByteArrayMultipartFile multipartFile = new ByteArrayMultipartFile(resource.getByteArray(), videoReq.videoName());

// S3에 파일 업데이트
s3Client.update(folderName + "/" + videoReq.videoName(), multipartFile);
return VideoRes.of(folderName, videoReq.videoName(), null);
}

Expand Down

0 comments on commit 8e54a7c

Please sign in to comment.