Legacy Knowledge Base
Published Jul. 2, 2025

Importing Large LAR Files Fails

Written By

Liferay Support

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Importing Large LAR files (100MB+) may fail in Liferay Portal. Below are some version-specific recommendations:

For versions before DXP 7.1

Increase the size of the following property: com.liferay.portal.upload.UploadServletRequestImpl.max.size=104857600

Note: The default property within portal.properties limits files to 100MB. This is different from the dl.file.max.size=0 property where setting this to 0 allows unlimited upload size for the document library.

For DXP 7.1+

Increase the value of "Overall Maximum Upload Request Size" in: "Control Panel > Configuration > System Settings > Infrastructure > Upload Servlet Request" section.

Flagged_LAR_File_Import_Update.png

For Liferay Cloud (or when using a webserver)

The default webserver used in Liferay Cloud is Nginx. Sometimes, the LAR file will be too large to upload or download for the default buffer in Nginx. The Nginx buffer has a default maximum size of 1024 MB. 
If you need to make larger downloads, you can adjust this value to the desired one.

If you face this issue while creating a LAR file, the LAR is generated correctly but, when the download starts it does not finish. 

For this, it will only be necessary to add the property and its value within the webserver configuration. 
For example, if you want to remove the buffer limit, you can add the following line inside the  liferay.conf  configuration file of the environment you want. In this case  configs / uat / conf.d

proxy_max_temp_file_size 0;

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base