Using @RequestParam for multipartfile is a right way? <p>I'm developing a spring mvc application and I want to handle multipart request in my controller. In the request I'm passing <code>MultiPartFile</code> also, currently I'm using <code>@RequestParam</code> to get the file paramaeter, the method look like,</p> <pre><code>@RequestMapping(method = RequestMethod.POST) public def save( @ModelAttribute @Valid Product product, @RequestParam(value = "image", required = false) MultipartFile file) { ..... } </code></pre> <p>Above code works well in my service and the file is getting on the server side. Now somewhere I seen that in case of file need to use <code>@RequestPart</code> annotation instead of <code>@RequestParam</code>. Is there anything wrong to use <code>@RequestParam</code> for file ? Or it may cause any kind of error in future?</p>