-
1. Re: wildfly-8.2.0 Large size fileUpload
ctomc Apr 29, 2015 5:27 AM (in response to kem)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
prasadamte May 23, 2017 5:34 AM (in response to ctomc)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