Skip to content

Commit

Permalink
fix: fix presigned url format
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Oct 19, 2024
1 parent dab1d10 commit e84f88f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Mono<String[]> createPreSignedUrls(String[] fileNames, String memberId) {
}

private URL generatePresignedUrl(String fileName, String memberId) {
String filePath = String.format("%s/photo/%s_%s", memberId, UUID.randomUUID(), fileName);
String filePath = String.format("%s/%s/photo/%s_%s", bucketName, memberId, UUID.randomUUID(), fileName);
Date expiration = new Date(System.currentTimeMillis() + presignedUrlExpiration);

return amazonS3Client.generatePresignedUrl(new GeneratePresignedUrlRequest(bucketName, filePath)
Expand Down

0 comments on commit e84f88f

Please sign in to comment.