title: Send file ( eg. file1.json) to POST REST API , input stream is null
body: <p>I have the following REST API to parse the given JSON:</p>
  
  <pre><code>POST
  @Consumes(MediaType.MULTIPART_FORM_DATA)
  @Produces(MediaType.TEXT_PLAIN)
  @Path("/test")
  public String getText(@FormDataParam("file") InputStream fileInputStream, @FormDataParam("file") FormDataContentDisposition fileDetail) throws Exception {
  </code></pre>
  
  <p>when I test it using the chrome extension postman, the filedetail.getName() is working however the input stream received is null. here the post request I sent :</p>
  
  <pre><code>POST /parse/test HTTP/1.1
  Host: localhost:8080
  Cache-Control: no-cache
  
  ----WebKitFormBoundaryE19zNvXGzXaLvS5C
  Content-Disposition: form-data; name="file"; filename="1.json"
  Content-Type: 
  
  
  ----WebKitFormBoundaryE19zNvXGzXaLvS5C
  </code></pre>
  
  <p>The inputstream received is null .</p>
  
  <p>Note: if I set the content type to "multipart/form-data" I got an exception :</p>
  
  <pre><code>java.lang.NullPointerException
      com.sun.jersey.multipart.impl.MultiPartReaderClientSide.unquoteMediaTypeParameters(MultiPartReaderClientSide.java:245)
      com.sun.jersey.multipart.impl.MultiPartReaderClientSide.readMultiPart(MultiPartReaderClientSide.java:172)
      com.sun.jersey.multipart.impl.MultiPartReaderServerSide.readMultiPart(MultiPartReaderServerSide.java:80)
      com.sun.jersey.multipart.impl.MultiPartReaderClientSide.readFrom(MultiPartReaderClientSide.java:158)
      com.sun.jersey.multipart.impl.MultiPartReaderClientSide.readFrom(MultiPartReaderClientSide.java:85)
      com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:490)
      com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:555)
      com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider$FormDataInjectableValuesProvider.getInjectableValues(FormDataMultiPartDispatchProvider.java:122)
      com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
      com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:183)
  </code></pre>
  
  <p>so I send it without any header, how can I read the file I sent from the postman, is there anything wrong with my REST API ?</p>