title: MultipartFile returns null every time
body: <p>I am using this code to post an image file to my controller but I always get a null value for the file body part.</p>
  
  <pre><code>@RequestMapping(value = "/updateprofile", method = RequestMethod.POST)
  public @ResponseBody
  ResponseMsg updateProfile(
          @RequestHeader(value = "userid", required = false) String userid,
          @RequestHeader(value = "name", required = false) String name,
          @RequestHeader(value = "phone", required = false) int phone,
          @RequestParam(value = "file", required = false) MultipartFile file) {
  
      ResponseMsg responseMsg = CommonUtils.checkParam(userid, name, phone,
              file);
      if (responseMsg.getStatus().equalsIgnoreCase("True"))
          responseMsg = userService.login(name, userid);
      return responseMsg;
  }
  </code></pre>
  
  <p>Can anyone help with this?</p>