agus priyo
agus priyo

Reputation: 95

download file from localhost

I want to put an image on my web and when clicked it will download a specific file. is this the correct script for this purpose ? but when I click there is no response.

<td><a href="file:download/D411.zip"><img src="images/download.png" title="Download"></a></td>

Thank you for the help

Upvotes: 1

Views: 7641

Answers (2)

Ashish Patel
Ashish Patel

Reputation: 772

Try this

<a href="download/abc.zip" download>Download link here</a>

Upvotes: 2

Danyal Sandeelo
Danyal Sandeelo

Reputation: 12391

I assume the download folder is in the same directory from where you are executing this snippet.

Change

<a href="file:download/D411.zip">

to

<a href="download/D411.zip">

Upvotes: 1

Related Questions