I am making a website on my localhost and I have a download pdf button in the footer. When I try to download it it pops up in Chrome downloads but itsays it failed to download. When i go to the URL of the pdf it says CANNOT GET /images/.pdf so I think its a localhost problem? If i go see the url of an image in the same folder it works but the pdf doesnt work.
This is my code in JADE
li.
<a href='http://www.bpost.be/site/nl/disclaimer.html'>Disclaimer</a>
|
<a href='/Reglement-SurpriseWebshop-NL.pdf' download>Wedstrijdreglement</a>
<a href="./directory/yourfile.pdf" download>Download the pdf</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.