Merge branch 'khj' into main
This commit is contained in:
parent
b6097165ca
commit
16a2f1ce82
@ -50,7 +50,7 @@ public class ImageUploadController {
|
||||
*/
|
||||
@ParameterCheck
|
||||
@PostMapping("/upload")
|
||||
public ApiResponse<String> uploadImage(@ReqMap MultipartFile file) throws IOException {
|
||||
public ApiResponse<String> uploadImage(@RequestParam("file") MultipartFile file) throws IOException {
|
||||
|
||||
if (file.isEmpty()) {
|
||||
return ApiResponse.error(HttpStatus.BAD_REQUEST, "File is empty");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user