Legacy Knowledge Base
Published Jun. 30, 2025

Defining file extensions for Document Library documents

Written By

Sergio Alonso

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

  • Is it possible to define what file extensions are allowed to upload into Document Library?

Environment

  • DXP 7.1+

Resolution

  • This configuration is done through UI :
Control Panel -> System Settings -> Documents and Media -> SYSTEM SCOPE -> Service -> File Extensions sections
  • Every file extension is defined with 'dot'[extension string] Some examples:
    .gif
    .jpg
    .odt
    .pdf
    .png
    .ppt
    .pptx
    .rtf
    .tiff
    .tgz
    .txt
    .vsd
    .xls
    .xlsx
    .xml
    .zip
    .jrxml
     
  • You can save and export the configuration. It will be available in com.liferay.document.library.configuration.DLConfiguration.config

file with all options syntax. This way, you can apply this configuration to others environments.

  • There are two additional file extensions configurations besides, for Web Content and Blogs:
Control Panel -> System Settings -> Web Content -> SYSTEM SCOPE -> File Uploads -> Allowed File Extensions sections
Control Panel -> System Settings -> Blogs -> SYSTEM SCOPE -> File Uploads -> Allowed Blogs Image File Extensions sections

 

Did this article resolve your issue ?

Legacy Knowledge Base