title: Http 415 on file Upload using jersey
body: <p>My code for RESTful file upload :</p>
  
  <pre><code>@Path("/upload") 
  @POST 
  @Consumes("multipart/form-data") 
  public String post(
      @FormDataParam("part") String s, 
      @FormDataParam("part") FormDataContentDisposition d) { 
      return s + ":" + d.getFileName(); 
  }
  </code></pre>
  
  <p>When I try to upload a file using curl 
          curl -X POST --form part=@file.txt url</p>
  
  <p>I am getting a HTTP 415-Unsupported Media Type Error. What is wrong ?</p>