diff --git a/src/main/java/com/example/daemawiki/domain/file/api/FileController.java b/src/main/java/com/example/daemawiki/domain/file/api/FileController.java index 5af3573e..df29df8a 100644 --- a/src/main/java/com/example/daemawiki/domain/file/api/FileController.java +++ b/src/main/java/com/example/daemawiki/domain/file/api/FileController.java @@ -28,7 +28,7 @@ public FileController(S3UploadObject s3UploadObject, S3DeleteObject s3DeleteObje } @PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - public Mono uploadFile(@RequestPart(value = "file", required = true) FilePart filePart, @RequestParam("type") String fileType) { + public Mono uploadFile(@RequestPart(value = "file", required = true) FilePart filePart, @NotBlank @RequestParam("type") String fileType) { return s3UploadObject.uploadObject(filePart, fileType); }