Legacy Knowledge Base
Published Jul. 2, 2025

Unable to create a Web Content with size more than 256KB.

Written By

Ankit Gupta

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

If the web content article size is more than 256 KB. It shows "Please enter content with valid content size no longer than 256KB" on UI.

Web_Content_Error.jpg

Environment

  • Portal 6.2
  • Liferay DXP 7.0 - 7.4

Resolution

For Liferay 6.2-7.3

Please add the below property in portal-ext.properties to create content with more than 256 KB. By default, the value is set to 256 KB.

    # Set the threshold size to prevent extraneous serialization of uploaded
    # data.
    #
    com.liferay.portal.upload.LiferayFileItem.threshold.size=262144

For Liferay DXP 7.4:

Below is the property you need to add in the portal-ext.properties:

# 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

Please Note: You need to increase the value 262144 i.e. 256 KB, to the value as per your business requirement. For DXP 7.4 the value by default is 1 MB and you can increase as per your requirements.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base