0 Replies Latest reply on Dec 9, 2009 11:46 AM by bedag-moo

    rich:fileUpload: very large files & JSF 1.1

    bedag-moo

      Hi everyone,

      I am looking for a JSF component to upload very large files (8GB) for use in a JSF 1.1 legacy application.

      rich:fileUpload seems to fit the bill, except that:

      1. It has been introduced in RichFaces 3.2, which already requires JSF 1.2. Does anyone know of a backport compatible with JSF 1.1? If not, would such a backport be feasible?
      2. The maximum file size is specified in the filter configuration using an int containing the number of bytes. Hence I cannot specify my intended limit of 10 GB:

      09.12.2009 17:43:29 org.apache.catalina.core.StandardContext filterStart
      SCHWERWIEGEND: Exception starting filter Seam Filter
      java.lang.NumberFormatException: For input string: "10000000000"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:459)
      at java.lang.Integer.parseInt(Integer.java:497)
      at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:184)
      at org.jboss.seam.web.Ajax4jsfFilter.init(Ajax4jsfFilter.java:82)
      ...

      Any workarounds?

      Are there any special pitfalls to be aware of when using rich:fileUpload for such large files? (I see it doesn't buffer the file in memory if properly configured. Anything else?)

      Feel free to recommend alternatives if another component would work better.