After installing a new portal with an AdvancedFileSystemStore document_library, the images aren't shown

Issue

  • After migrating, upgrading or installing a new portal with an existing database and document library folder using the AdvancedFileSystemStore the images and documents aren't accessible.

Environment

  • Liferay DXP (any version)

Resolution

  • After installing a new portal and copying the document_library to it's new data/document_library folder, if the folder was using the AdvancedFileSystemStore storage type, you must activate the AdvancedFileSystemStore module for it to replace te the default SimpleFileSystemStore.
  • To activate the AdvancedFileSystemStore you must:
    • Add the property dl.store.impl=com.liferay.portal.store.file.system.AdvancedFileSystemStore to your portal-ext.properties file.
    • Go to Control Panel > System Settings > File Storage > Advanced Filesystem Store;
    • Change the Root Directory to the location of your document_library folder, if required, and Save the configuration;
  • IMPORTANT: Even if the default Root Folder is correct, you must save the configuration in order to activate the AdvancedFileSystemStore module. If you see the message

Additional Information

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0