Skip to content

Commit

Permalink
feat: get filename in create signed url api
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Aug 31, 2024
1 parent fb45b2c commit 1d137a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/co/orange/ddanzi/service/ItemService.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ public class ItemService {


@Transactional
public ApiResponse<?> createSignedUrl(){
UUID uuid = UUID.randomUUID();
log.info("Creating uuid for SignedUrl: {}", uuid);
String url = gcsService.generateSignedUrl(uuid.toString());
public ApiResponse<?> createSignedUrl(String fileName){
String url = gcsService.generateSignedUrl(fileName);
return ApiResponse.onSuccess(Success.GET_GCP_SIGNED_URL_SUCCESS, Map.of("signedUrl", url));
}

Expand Down

0 comments on commit 1d137a3

Please sign in to comment.