legacy-knowledge-base
公開されました Jun. 30, 2025

'Error: Please enter content with valid content size no larger than 1 MB' when using Liferay Forms

written-by

Ally McGill

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

learn-legacy-article-disclaimer-text

Issue

  • When I am saving a form with a large amount of data, I get the following error: 
    Error: Please enter content with valid content size no larger than 1 MB. 

Environment

  • Liferay Quarterly Releases

Resolution

  • Increase the threshold size with the following property:
    # Set the threshold size to prevent extraneous serialization of uploaded
    # data.
    #
    # Env: LIFERAY_COM_PERIOD_LIFERAY_PERIOD_PORTAL_PERIOD_KERNEL_PERIOD_UPLOAD_PERIOD__UPPERCASEF_ILE_UPPERCASEI_TEM_PERIOD_THRESHOLD_PERIOD_SIZE
    #
    com.liferay.portal.kernel.upload.FileItem.threshold.size=1048576
  • See Unable to create a Web Content with size more than 256KB

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base