Large file upload
Increasing the limit under JBoss
By default, JBoss limits the upload size to 10 MB. To increase this limit, edit the configuration file:
File to edit:
domain.xml(cluster mode)standalone.xml(standalone mode)
Example - increase to 200 MB:
<http-listener name="default" socket-binding="http"
redirect-socket="https"
max-post-size="209715200"/>
The value is in bytes. To compute:
- 200 MB = 209,715,200 bytes
- 500 MB = 524,288,000 bytes
- 1 GB = 1,073,741,824 bytes
Restart JBoss after the change.