Legacy Knowledge Base
Published Jul. 2, 2025

SVG images are not visible in Web Content draft

Written By

Kanchan Bisht

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.

Issue

  • SVG images are not visible on the patch level (Fix Pack 20) and they used to be visible on the previous one (Fix Pack 11)
    • Reproduction Steps
      • Setup Liferay DXP 7.1 with Fix Pack 20
      • Create a Basic document
      • Upload the file with SVG extension → Publish
      • Click on the 3-dots menu→right-click on the Download→Copy link address
      • Create a new Basic Web Content
      • Click in the web content's Content field
      • Click on the Code View button
      • Enter : <img src="dlfileurl" />
      • Replace dlfileurl with the image's link
      • Click on the Text View button
      • Expected Behavior: The SVG file is visible.
      • Actual Behavior: The SVG file is not visible.

Environment

  • Liferay DXP 7.1 Fix Pack 20

Resolution

  • It is a known issue and if the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install this hotfix in the respective environment.
Did this article resolve your issue ?

Legacy Knowledge Base