title: Unsupported Media Type: upload files
body: <p>my document-upload.service.ts</p>
  
  <pre><code>private uploadFile(file: File) {
          let formData: FormData = new FormData();
          formData.append('uploadFile', file, file.name);
          let headers = new HttpHeaders({'Content-Type': 'multipart/form-data'});
          return this.http.post(`${this.uploadUrl}`, formData, {headers: headers, responseType: 'text' });
      }
  </code></pre>
  
  <p>my RestResourceFileUpload.java</p>
  
  <pre><code>    @Path("/fileupload")
  public class RestResourceFileUpload
  {
      @Inject
      private FileUploadDomainService fileUploadDomainService;
  
      @POST
      @Consumes(MediaType.MULTIPART_FORM_DATA)
      public Response fileUpload(
              @FormDataParam("file") InputStream uploadedInputStream,
              @FormDataParam("file") FormDataContentDisposition formContent) throws SGDevException, IOException
      {}
  </code></pre>
  
  <p>When i call my rest service i get </p>
  
  <blockquote>
    <p>[WARNING ] javax.ws.rs.WebApplicationException: HTTP 415 Unsupported Media Type</p>
  </blockquote>
  
  <p>:( 
  Any idea why it's not working?</p>