简体   繁体   中英

How can I download an mp4 file using the 'download' property of HTML's a link?

I want to be able to download the "video.mp4" file with the code below.

<a href="video.mp4" download>download</a>

However, it is not downloaded and played.

How can I make it downloaded without being played?

<a href="<resource_link>" download="<resource_name>" target="_blank">download</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM