Legacy Knowledge Base
Published Jul. 2, 2025

Setting 'dl.file.extensions' Property Prevents All Documents and Media File Uploads

Written By

Liferay Support

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.

This article describes the issue with setting dl.file.extensions portal property preventing all Documents and Media file uploads, including using the multiple filder uploader.

Steps to Reproduce

Add the following to your portal-ext.properties found in the Liferay Home directory:

dl.file.extensions=.bmp,.css,.doc,.docx,.dot,.eot,.flv,.gif,.htm,.html,.jpg,.jrxml,.js,.map,.mp3,.mp4,.odb,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.ppt,.pptx,.rtf,.svg,.swf,.sxc,.sxi,.sxw,.tiff,.ttf,.txt,.vsd,.woff,.xls,.xlsx,.xml
  1. Start Liferay Portal and login as Admin
  2. Go to Admin > Site Administration > Content > Documents and Media
  3. Click Add > Multiple Documents or Add > Basic Document
  4. Attempt to add a file with an extension listed in the property added in step 1
  5. Notice that the upload is rejected and a message stating, Please enter a value with a valid extension is shown

    (.bmp,.css,.doc,.docx,.dot,.eot,.flv,.gif,.htm,.html,.jpg,.jrxml,.js,.map,.mp3,.mp4,.odb,.odf,.odg,.odp,.ods,.odt,.pdf,*.png,.ppt,.pptx,.rtf,.svg,.swf,.sxc,.sxi,.sxw,.tiff,.ttf,.txt,.vsd,.woff,.xls,.xlsx,.xml)."

Resolution

This fix is included in the Portal 6.2 SP9 from Liferay Help Center.

Did this article resolve your issue ?

Legacy Knowledge Base