Issue
- We cannot create a form with over 28 elements, as when we attempt this scenario we are redirected back to the form list without any success and there is an error message is thrown in the logs.
Environment
- Liferay DXP 7.4
Resolution
By increasing the value of the property com.liferay.portal.kernel.upload.FileItem.threshold.size you may avoid the issue. Using the following value and the issue stopped happening.
com.liferay.portal.kernel.upload.FileItem.threshold.size=8048576
It might also need to increase the maxPostSize of tomcat, is it should be done so by increasing this parameter on TOMCAT-HOME/conf/server.xml:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"
maxPostSize="8000000" />
Here, is it set near 8MB, the default value is 2MB (2097152), and setting it to -1 will remove the size limit entirely.