Issue
When uploading images using the image field in a web content structure, the images do not appear in the documents and media portlet. After running the upgrade to Liferay DXP 7.3 from a prior version of Liferay, the web content that contained the images that were uploaded through the image field no longer show the image.
Environment
- Liferay DXP 7.3
Resolution
- Although the file does not appeari n the documents and media portlet, when uploading an image using the image field in a web content structure, the file is still stored in the file system.
- Therefore, when conducting an upgrade to Liferay DXP 7.3, it is still necessary to point the new Liferay environment to the old document library (or copy over the old document library to the location in the new environment.
- During the upgrade, the following occurs:
- Migrate the old image (Image table + file system) to the DL (DLFileEntry table + DL file system)
- Remove the table JournalArticleImage that contained the old references since it is no longer needed. Now the DL is used as reference for the images in Web Content
- The new DL URL format is:
http://{domain}/documents/{groupId}/{DLFileEntry_UUID}
- All of the old URLs to the images are backward compatible, so as long as the document library is reconnected appropriately, you will still be able to access all the images through the old URLs as well as the new URL.