0

I think there is nothing wrong. I have watched lots of videos and nearly all of them were the same syntax. Maybe something with javascript?!

<a href="file.pdf" download>download</a>

I've tried also this but didn't work. Same result

<a href="file.pdf" download="fileName">download</a>

1 Answers1

0

Possible Solutions

1 - If you are just trying to achieve the download functionality on your browser only (which it looks like you aren't but I thought I should include anyway), you can open chrome, go to Settings -> Advanced Settings -> Content Settings -> PDF Documents -> Toggle on Download

2 - You can compress and zip the file so the browser is forced to download the file.