title: Required MultipartFile parameter 'file' is not present when I request from Angular 4
body: <p>I can do a request uploading a file from Postman, but when I do the request from Angular, it is returned the WARN "Required MultipartFile parameter 'file' is not present"</p>
  
  <p>It follows my resource in API.</p>
  
  <pre><code>@PostMapping
  public ResponseEntity&lt;Conteudo&gt; publicaConteudo(@RequestParam("file") MultipartFile file) throws JsonParseException, JsonMappingException, IOException {
      /* ANYTHING */
      return ResponseEntity.ok(new Conteudo());
  }
  </code></pre>
  
  <p>And my service in Angular. I'm using JWT, but I also trying to do the request using HttpClient.</p>
  
  <pre><code>upload(file: File, conteudo: Conteudo): Promise&lt;any&gt; {
     let formData: FormData = new FormData();
  
     formData.append('file', file, file.name);
  
    /* USING JWT
     return this.http.post(this.conteudoUrl, formData)
      .toPromise()
      .then(response =&gt; response.json());
    */
       let h1 = new HttpHeaders().set('Authorization', 'Bearer ' + localStorage.getItem('token'));
       const req = new HttpRequest('POST',this.conteudoUrl, formData, {
           headers: h1
    });
    return this.httpClient.request(req).toPromise();
   }
  </code></pre>
  
  <p>And how I can do in Postman</p>
  
  <p><a href="https://i.stack.imgur.com/uWpYC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uWpYC.png" alt="enter image description here"></a></p>
  
  <p>I tried many solutions that I found, as create a Bean MultipartResolver and others, but any solve my problem and what I think more interesting is that it works fine in Postman. </p>