Skip to content

Commit

Permalink
fix:post file produces application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy0006 committed May 19, 2024
1 parent a91485b commit 53edb77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ResponseEntity sendFile(@PathVariable(name = "fileName") String fileName)
}
}

@PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
@PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<String> uploadFile(@ModelAttribute MultipartFile file) {
try {

Expand Down

0 comments on commit 53edb77

Please sign in to comment.