diff --git a/src/main/java/com/beat/global/external/s3/controller/FileController.java b/src/main/java/com/beat/global/external/s3/controller/FileController.java index b3d5b851..eec8614e 100644 --- a/src/main/java/com/beat/global/external/s3/controller/FileController.java +++ b/src/main/java/com/beat/global/external/s3/controller/FileController.java @@ -23,9 +23,14 @@ public class FileController { @GetMapping("/presigned-url") public ResponseEntity>> getPresignedUrls( @RequestParam String posterImage, - @RequestParam List castImages, - @RequestParam List staffImages) { - + @RequestParam(required = false) List castImages, + @RequestParam(required = false) List staffImages) { + if (castImages == null) { + castImages = List.of(); + } + if (staffImages == null) { + staffImages = List.of(); + } Map> response = fileService.getPresignedUrls(posterImage, castImages, staffImages); return ResponseEntity.ok(response); }