According to the standard way of file uploading in spring: https://spring.io/guides/gs/uploading-files/ we shall use @RequestParam("file") MultipartFile file to receive the file uploaded from the form.
But I wonder why the annotation is "RequestParam" rather than something like "RequestBody", since in the form we specify "method=post", shouldn't the data be inside form post body?
Thanks a lot!