0 Replies Latest reply on Aug 10, 2011 3:04 AM by dhanarajar

    rich:fileUpload maxRequestSize and uploading zip files with Seam

    dhanarajar

      Hi !!!!

       

      I am Using rich:fileupload

           <rich:fileUpload

                         id="zipFileUpload" 

                        fileUploadListener="# {actiuonName.zipFileUploadListener}"

                        immediateUpload="true"     

                        required="true"

                        maxFilesQuantity="1"

                         listHeight="100px"

                        acceptedTypes="zip">     

                        </rich:fileUpload>

       

       

      It is allowing only the zip files correctly but problem is it is not accepting files after some size..

      For example it is not accepting 2MB zip files also

       

      i configured  web.xml like this

       

      <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>5242880</param-value>

              </init-param>

          </filter>

       

      because my requirement is to allow only 5MB maximum..

       

      Can any one tell me why this is happening..

       

      If it is not possible to upload zip files using rich:fileupload pls tell me the alternate for that