title: Required String parameter is not present with Spring RestTemplate
body: <p>I am having trouble to post 2 parameters with RestTemplate :</p>
  
  <ul>
  <li>a String</li>
  <li>a MultipartFile</li>
  </ul>
  
  <p>I don't think there is a problem in my controller because it's very basic. It seems that the controller doesn't received the name parameter. Could you tell me what's wrong in my code</p>
  
  <p><strong>The controller</strong> (the receiver) </p>
  
  <pre><code>@RequestMapping(value="/fileupload", method=RequestMethod.POST)
  public void handleFileUpload(@RequestParam("name") String fileUploadHandlerName,
                               @RequestParam("file") MultipartFile file)
  {
      [...]
  }
  </code></pre>
  
  <p><strong>The Rest client</strong> (the sender)</p>
  
  <pre><code>RestTemplate rest = new RestTemplate();
  URI uri = new URI("http://127.0.0.1:7011/xxxxxxxx/admin/fileupload");
  
  MultiValueMap&lt;String, Object&gt; parts = new LinkedMultiValueMap&lt;String, Object&gt;();
  parts.add("name", "import_keys");
  Resource file = new ClassPathResource("xmlFileImport/file.xml");
  parts.add("file", file);
  
  rest.postForLocation(uri, parts);
  </code></pre>
  
  <p><strong>The controller stackTrace</strong></p>
  
  <blockquote>
    <p>org.springframework.web.bind.MissingServletRequestParameterException:
    Required String parameter 'name' is not present</p>
  </blockquote>