如何将下载链接添加到html,其中href是在线托管的.mp4?

问题描述 投票:0回答:2

我想允许用户下载Cloudinary上托管的.mp4文件。我目前有这个:

   <a
   target="__blank"
   href='https://res.cloudinary.com/dental- 
   intelligence/video/upload/v1576364994/ippevbecmsljhzkfklyi.mp4'
   download
   >
   Download
   </a>

但是要做的只是打开网址,然后开始播放视频。用户按下下载后,是否可以直接将其下载到计算机?

html cloudinary
2个回答
0
投票

我认为您必须删除目标属性


0
投票

您需要删除目标属性,并使用Cloudinary(attachment)中的fl_attachment标志。

<a href='https://res.cloudinary.com/dental-intelligence/video/upload/fl_attachment/ippevbecmsljhzkfklyi.mp4'>Download</a>
© www.soinside.com 2019 - 2024. All rights reserved.