0

I try to put a link to a file in my page, such that, once a user clicks the link - the browser downloads the file.

HTML:

<a href="correct_path...." download>downloadable link</a>

Here is the image shows the full path of the link:

enter image description here

And here is the image shows the file does exist:

enter image description here

So why, when I click the link NOTHING happens? it doesn't download..

Martin
  • 16,093
  • 1
  • 29
  • 48

1 Answers1

0

When you work with a server (local server too) the root of the urls/links must be the server, not your computer.

For example, in your case, if the root folder of your server is 'SMIS' the correct URL will be "http://localhost/SMIS/Files/6.pdf"

mdrg89
  • 61
  • 5