2 Replies Latest reply on May 23, 2017 5:34 AM by Prasad Amte

    wildfly-8.2.0 Large size fileUpload

    kem Newbie

      Hi,

       

      The app: java ee 7 + primefaces 4. Large file upload works fine in glassfish 4, but not working in wildfly-8.2.0. I got the following error:

      SEVERE [org.primefaces.webapp.MultipartRequest] (default task-14) Error in parsing fileupload request

       

      How to configure wildfly-8.2.0 for large file upload.

       

      Thanks

       

       

       

       

       

        • 1. Re: wildfly-8.2.0 Large size fileUpload
          Tomaz Cerar Master

          see https://docs.jboss.org/author/display/WFLY8/Undertow+subsystem+configuration

           

          you need to set max-post-size on incoming listener, default is 10MB

          • 2. Re: wildfly-8.2.0 Large size fileUpload
            Prasad Amte Newbie

            Hello Tomar,

             

            We need to set the file size to 200MB. I have done below configuration.

            <http-listener name="default" socket-binding="http" proxy-address-forwarding="true" max-post-size="209715200"/>

             

            It does not work. On applucation UI internal server error is seen. No error seen in serevr log.

             

            Can you please suggest?

             

            Thanks,

            Prasad

             

            ====

            I went ahead and enabled logging for Wildfly and got the below log. I set the max post size as 200MB as mentioned above and tried to upload a file of 196 MB. it gave below error :-

             

             

             

            12:42:10,540 DEBUG [io.undertow.request.io] (default task-92) Exception handling request to /rivermine/app: java.io.IOException: the request was rejected because its size (201079514) exceeds the configured maximum (134217728)

             

            ====

            What it indicates that we cannot set the max file size greater than 128MB. Even if we set it as more than 128 MB, it will not honour it? From where is it picking (134217728) , this is 128 MB? OR the above configuration

            <http-listener name="default" socket-binding="http" proxy-address-forwarding="true" max-post-size="209715200"/>, is wrong?

             

            Please suggest.

             

            Thanks,

            Prasad