3 Replies Latest reply on Jan 25, 2013 4:50 AM by trind

    richface fileupload file size restricted error

    trind Newbie

      I am using richface 3.3.3 with Seam 2.2., Jboss 6.1 I am using the trying to use rich:fileupload component. i get error on  files above 10 MB when i deploy my Code on a linux server, when i try  the exact same code on my windows server it works fine with files upto  1.9GB.

      I go the following settings in web.xml

      <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
               <init-param>
                  <param-name>maxRequestSize</param-name>
                  <param-value>1900000000</param-value>
              </init-param> 
              <init-param>
                  <param-name>createTempFiles</param-name>
                  <param-value>true</param-value>
              </init-param>
      
          </filter>
          <filter-mapping>
             <filter-name>Seam Filter</filter-name>
             <url-pattern>/*</url-pattern>
      </filter-mapping>
      

      My file uppload component.

         <rich:fileUpload id="fileUploadId" uploadControlLabel="Ladda Ner"
                      addControlLabel="Filer..." cancelEntryControlLabel="Ta bort"
                      maxFilesQuantity="1000" uploadButtonClassDisabled="invisible"
                      stopButtonClass="invisible"  onadd="_onaddHandler(event);" onerror="_onerrorhandle(event);"
                      fileUploadListener="#{deliveryInAction.fileUploadListener}"
                      onupload="Richfaces.showModalPanel('wait-dialog-upload');"
                      onuploadcomplete="archive();" allowFlash="auto" styleClass="syll-file-upload"/>