I have the following endpoint that can successfully receive files when a POST request is sent to it:
@RequestMapping(
value="/fileUpload",
method=RequestMethod.POST)
public String receiveFile(@RequestParam("file") MultipartFile file) {
return "Successfully uploaded " + file.getOriginalFilename();
}
How can I edit the endpoint such that it can receive specifically gzip files? Is there a GzipFile
class that I can replace my MultipartFile
parameter with?