title: @MultipartForm How to get the original file name?
body: <p>I am using jboss's rest-easy multipart provider for importing a file. I read here <a href="http://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/Content_Marshalling_Providers.html#multipartform_annotation" rel="noreferrer">http://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/Content_Marshalling_Providers.html#multipartform_annotation</a> regarding @MultipartForm because I can exactly map it with my POJO.</p>
  
  <p>Below is my POJO</p>
  
  <pre><code>public class SoftwarePackageForm {
  
      @FormParam("softwarePackage")
      private File file;
  
      private String contentDisposition;
  
      public File getFile() {
          return file;
      }
  
      public void setFile(File file) {
          this.file = file;
      }
  
      public String getContentDisposition() {
          return contentDisposition;
      }
  
      public void setContentDisposition(String contentDisposition) {
          this.contentDisposition = contentDisposition;
      }
  }
  </code></pre>
  
  <p>Then I got the file object and printed its absolute path and it returned a file name of type file. The extension and uploaded file name are lost. My client is trying to upload a archive file(zip,tar,z)</p>
  
  <p>I need this information at the server side so that I can apply the un-archive program properly.</p>
  
  <p>The original file name is sent to the server in content-disposition header.</p>
  
  <p>How can I get this information? Or atleast how can I say jboss to save the file with the uploaded file name and extension? Is it configurable from my application?</p>