Legacy Knowledge Base
Published Jul. 2, 2025

Using the iFrame tags for a video file downloads the file instead of embedding it when using Blogs

Written By

Justin Mann

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

  • If the iFrame tag is used to embed a video (.mp4) file within Blogs, the file is downloaded, instead of being embedded to be played.

 

Environment

  • Liferay DXP 7.3

 

Resolution

  • According to the documentation for iframe, the iFrame tag is best used for embedding PDFs and external website links.
  • It is preferred to use the <video> tag when embedding videos such as MP4, WebM and OGG formats
  • This is an example of a video tag that can be used to embed an internally uploaded video file in blogs:
<video controls width="640" height="360">
<source src="[URL to video]"
type="video/mp4">
</video>
  • Please note that there is a known issue in updates before Update 7 that the Blogs widget was stripping video tags when toggling between the HTML view and normal view. This has been resolved as of Update 7.
Did this article resolve your issue ?

Legacy Knowledge Base