title: Postman - Required MultipartFile parameter is not present - Spring, Java
body: <p><strong>Edit</strong></p>
  
  <p>This question is different from: <a href="https://stackoverflow.com/q/29488852/2279082">jQuery Ajax file upload : Required MultipartFile parameter &#39;file&#39; is not present</a>
  The difference is that they use jQuery and Ajax, while I use a REST client - 'Postman'</p>
  
  <p>So instead of setting Content-Type to false, I had to remove it altogether.</p>
  
  <p>Also, when searching for answers about 'Postman', I believe people will skip questions that have the words jQuery and Ajax in them, this is what happened to me</p>
  
  <p><strong>End Edit</strong></p>
  
  <p>I'm using Spring MVC web application on Java8 and running it on tomcat7.x.
  Spring version is: <code>4.2.6.RELEASE</code> and javax servlet version is: 3.0.1</p>
  
  <p><strong>context.xml</strong></p>
  
  <pre><code>...
  
  &lt;bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&gt;
      &lt;!-- max upload size in bytes --&gt;
      &lt;property name="maxUploadSize" value="5242880" /&gt; &lt;!-- 5MB --&gt;
  
      &lt;!-- max size of file in memory (in bytes) --&gt;
      &lt;property name="maxInMemorySize" value="1048576" /&gt; &lt;!-- 1MB --&gt;
  
  &lt;/bean&gt;
  
  ...
  </code></pre>
  
  <p><strong>controller.java</strong></p>
  
  <pre><code>...
  @RequestMapping(method = RequestMethod.POST, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
  @ResponseStatus(value = HttpStatus.CREATED)
  public void importTranslations(@RequestParam (name = "myfile") MultipartFile myfile) {
      myService.doSomething(myfile);
  }
  ...
  </code></pre>
  
  <p><strong>Here is the issue</strong></p>
  
  <p>I use Postman to send a *.zip file. The path is correct and everything looks good, but spring throws an exception:
  "Required MultipartFile parameter 'myfile' is not present"</p>
  
  <p><strong>Here is the screenshot from Postman:</strong>
  <a href="https://i.stack.imgur.com/Sw1W7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sw1W7.png" alt="enter image description here"></a>
  So the file is there and the key name is correct.
  Everything seems OK, and yet, I get the error</p>