legacy-knowledge-base
Publicado Sep. 25, 0005

Documents and Media allows restricted file types in portal-ext.properties

written-by

default-service-account default-service-account

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

learn-legacy-article-disclaimer-text

Issue

  • The customer tried to restrict the file types .exe and .cmd to be uploaded in Documents and Media but despite configuring dl.file.extensions and dl.file.extensions.strict.check properties in portal-ext.properties it still allows them to upload files with these extensions. 

 

Environment

  • DXP 7.2, DXP 7.4, Quarterly Release

 

Resolution

  • The propertiesdl.file.extensions and dl.file.extensions.strict.checkhave been deprecated. These configurations can be set by the following instructionsn in the UI:
    1. Navigate to Control Panel > System Settings > Documents and Media > Service.
    2. Locate the "File Extensions" setting and specify the allowed file extensions.
      • The default setting is "*" which allows all file types
  • In contrast to portal-ext.properties, it does not separate multiple file types by comma. You have to add a new File Extensions per file type. 
    • You can just click on the "+" button to add more field. 

 

Additional Information

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base