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

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助