0

How to make direct download link from own host?

I want to make download link for my files in my host

10th Apr 2020, 8:30 AM
Mohammad
Mohammad - avatar
2 Antworten
+ 2
<a href="/images/myw3schoolsimage.jpg" download> <img src="/images/myw3schoolsimage.jpg" alt="W3Schools"> </a>
10th Apr 2020, 11:34 AM
David
+ 1
As suggested by David set the 'download' attribute to your a links provinding download links: on click the linked ressource would not be opened by the browser but rather proposed to be save by user ;)
10th Apr 2020, 1:46 PM
visph
visph - avatar