Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
not blank 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Feb 22, 2024
1 parent 160aeb2 commit 546a2ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public FileController(S3UploadObject s3UploadObject, S3DeleteObject s3DeleteObje
}

@PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public Mono<File> uploadFile(@RequestPart(value = "file", required = true) FilePart filePart, @RequestParam("type") String fileType) {
public Mono<File> uploadFile(@RequestPart(value = "file", required = true) FilePart filePart, @NotBlank @RequestParam("type") String fileType) {
return s3UploadObject.uploadObject(filePart, fileType);
}

Expand Down

0 comments on commit 546a2ad

Please sign in to comment.