title: HTTP Status 400 - Required ... parameter ... is not present
body: <p>I have following controller:</p>
  
  <pre><code>       @ModelAttribute("multipartFileWrapper")
          public MultipartFileWrapper createEmployeeModel() {
             return new MultipartFileWrapper();
          }
          @RequestMapping(value = "/member/createCompany/uploadImage", method = RequestMethod.POST)
          @ResponseBody
              public ResponseEntity&lt;String&gt; handleFileUpload(@RequestParam("file") @Validated         MultipartFileWrapper file, BindingResult result, Principal principal) {
                 if(result.hasErrors()){
                     System.out.println("ololololo");
  
                 }
                 return  null;
              }
        }
  </code></pre>
  
  <hr>
  
  <pre><code>@Component
  public class MultipartFileWrapper {
      @Extensions(".jpg")
      MultipartFile multipartFile;
  
      public MultipartFile getMultipartFile() {
          return multipartFile;
      }
  
      public void setMultipartFile(MultipartFile multipartFile) {
          this.multipartFile = multipartFile;
      }
  }
  </code></pre>
  
  <p>and following jsp:</p>
  
  <pre><code>    &lt;form:form method="POST"  action="uploadImage" enctype="multipart/form-data" id="imageUploadForm" commandName="multipartFileWrapper" &gt;
                  &lt;div class="load-line"&gt;
                      &lt;td&gt;&lt;form:input path="multipartFile" name="file" type = "file" class = "file" accept=".jpg,.png,.gif,.bmp,.wbmp" /&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;form:errors path="multipartFile" cssClass="error" /&gt;&lt;/td&gt;
                      &lt;input type="submit" value="Submit" /&gt;
                 &lt;/div&gt;
    &lt;/form:form&gt;
  </code></pre>
  
  <p>When I submit form I get following error:</p>
  
  <pre><code>HTTP Status 400 - Required MultipartFileWrapper parameter 'file' is not present
  </code></pre>
  
  <p>What do I make wrong?</p>