8 Replies Latest reply on Sep 7, 2011 7:47 PM by nathandennis

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