From 546a2ad6b30e587e1c74235bed4948c6604f111e Mon Sep 17 00:00:00 2001 From: 101 Date: Fri, 23 Feb 2024 07:10:34 +0900 Subject: [PATCH] =?UTF-8?q?not=20blank=20=EC=96=B4=EB=85=B8=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/daemawiki/domain/file/api/FileController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }