To increase file upload size limit in wildfly, the steps are as follows:
1. Go to bin directory in wildfly (assuming your wildfly directory is located in /opt), and connect to wildfly console
# cd /opt/wildfly/bin
# ./jboss-cli.sh -c
2. Go to /subsystem=undertow/server=default-server/http-listener=default
[standalone@localhost:9990 /] cd /subsystem=undertow/server=default-server/http-listener=default
3. Increase max-header-size to a higher value
[standalone@localhost:9990 /] :write-attribute(name=max-header-size,value=30000000)
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@localhost:9990 /] :write-attribute(name=max-post-size,value=30000000)
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@localhost:9990 /] ls
max-header-size=30000000
...
max-post-size=30000000
No comments:
Post a Comment