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.
- 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
- 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
- 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