Search code examples
richfacesseamredhatjboss6.x

richface fileupload file size restricted error


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.

Windows 7,Ubuntu as server works fine. Red Hat Enterprise Linux Server release 6.2 (Santiago) dosn't work.

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

Solution

  • Solved it, had a front end Nginx with max_body_size : 10M changed that it it worked.