Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-955

filename support for a @MultipartForm annotated class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.0.6.Final
    • 3.0.3.Final
    • jaxrs

      filename support has been recently added to Multipart-Forms:
      https://issues.jboss.org/browse/RESTEASY-876

      It would be nice if a mechanism to define the filename for a @MultipartForm annotated class is added.

      So a class like this could also define it's filename for "data":

      public class Attachment {
      	@FormParam("file")
      	@PartType("text/plain")
      	private byte[] data;
      }
      

      It would be important to be able to assign the name dynamically and not only with an annotation like

      @FormParamName("Test")
      

              patriot1burke@gmail.com Bill Burke (Inactive)
              rond_jira Torsten Schöne (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: