Legacy Knowledge Base
Published Jul. 2, 2025

Documents and Media Library Capacity

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.

As many customers use the Liferay Document Library to store the bulk of their documents, a natural question arises pertaining to the data; namely, how much is too much? While this depends heavily on the specific environments, this article aims to answer the question for a generic environment. Liferay software will not place a constraint on the document library. Any performance constraints will lie in the application server or database. Many Liferay customers have large document libraries without any trouble from the Liferay platform.

File upload size and maximum file size are controlled through the UI and through the portal properties described below. Please review all configurations and properties to determine those most appropriate for the expected use case.

Resolution

  1. To set the maximum file size, change the following values found in portal.properties:
    Set the maximum file size and valid file extensions for documents. A value
        # of 0 for the maximum file size can be used to indicate unlimited file
        # size. However, the maximum file size allowed is set in the property
        # "com.liferay.portal.upload.UploadServletRequestImpl.max.size".
        #
        #dl.file.max.size=307200
        #dl.file.max.size=1024000
        dl.file.max.size=3072000
    	
  2. To set the maximum file size for indexable content, change the following values found in portal.properties:
    Set the maximum size for a file's indexable content. Files larger than
        # this property will only have this amount of their content indexed. A value
        # of -1 indicates that all of a file's content will be indexed. A value of 0
        # indicates that none of the file's content will be indexed.
        #
        dl.file.indexing.max.size=1048576
    	
  3. To set the maximum file size for preview and thumbnail generation, change the following values found in portal.properties:
    Set the maximum file size for preview and thumbnail generation. Files
    # larger than the value specified in this property will not result in the
    # execution of a processor that generates a preview. A value of -1 indicates
    # that all files will be processed. A value of 0 indicates that no files
    # will be processed. The default maximum size is 100 megabytes.
    #
        dl.file.entry.previewable.processor.max.size=104857600
Did this article resolve your issue ?

Legacy Knowledge Base