I have a controller that accepts files.
@Controller
public class UploadImageItem {
@ResponseBody
@PostMapping(value = "/uploadFile", consumes = "multipart/form-data")
public ModelAndView uploadImagesPost(@RequestParam(value = "file", required = false) MultipartFile multipartFiles) {
return new ModelAndView("/uploadFile");
}
}
Please tell me, if I did not process the received file and did not save it to the desired location, then what happens to the file, where does it go?
I'm worried that this file remains somewhere on the server and takes up space and needs to be deleted.