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

filename support for a @MultipartForm annotated class

    XMLWordPrintable

Details

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

    Description

      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")
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: