Legacy Knowledge Base
Published Jul. 2, 2025

Property com.liferay.portal.upload.UploadServletRequestImpl.max.size does not work in DXP 7.1

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

  • When I try to set the value in portal-ext.properties: 
    com.liferay.portal.upload.UploadServletRequestImpl.max.size=1048576000,
    I receive the following error: 
    "The file content_1309-20190510167.lar cannot be imported. 
    Please enter a file with a valid file size no larger than 100.0MB."
  • Basically, the setting does not work.

Environment

  • Liferay DXP 7.1

  • Liferay DXP 7.2

  • Liferay DXP 7.3

  • Liferay DXP 7.4

Resolution

  • com.liferay.portal.upload.UploadServletRequestImpl.max.size property is already built in the portal from Liferay DXP 7.1 you can set it through the UI in the portal.
  • You can set up the file size if you follow these points:
    1. Go to Control Panel
    2. Choose Configuration
    3. Click on System Settings
    4. Choose Infrastructure
    5. Click on "Upload Servlet Request"
    6. Here you are able to change the default settings.
Did this article resolve your issue ?

Legacy Knowledge Base