2 Replies Latest reply on May 17, 2007 1:57 AM by jazir1979

    File upload / multipart filter - max request size

    jazir1979

      Hi all,

      It's a bit limiting for my app that we can only specify max-request-size for the entire multipart filter. Is it possible to also expose this as an attribute on the s:fileUpload tag so we can have different size limits for different uploads?

      If it sounds do-able, let me know and I can lodge a JIRA.

      thanks,
      Daniel.

        • 1. Re: File upload / multipart filter - max request size
          shane.bryzak

          This isn't really doable because at the point in time where the file upload request is parsed there is no FacesContext, no view root, etc. What you could possible do though is configure multiple filters with different paths, each with their own max-request-size parameter.

          • 2. Re: File upload / multipart filter - max request size
            jazir1979


            Ahh...I had a feeling there'd be a reason behind it. It's not a big deal at the moment and I could always implement further size restrictions in my business logic to restrict what we really accept. I was just hopeful that it would be do-able ;)

            Thanks for your help,
            Daniel.

            "shane.bryzak@jboss.com" wrote:
            This isn't really doable because at the point in time where the file upload request is parsed there is no FacesContext, no view root, etc. What you could possible do though is configure multiple filters with different paths, each with their own max-request-size parameter.