Legacy Knowledge Base
Published Jun. 30, 2025

Limited amount of elements in Forms

Written By

Viktória Gyömbér

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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.

 

Did this article resolve your issue ?

Legacy Knowledge Base