how to set up a link to download a file from website

  • 1
  • Question
  • Updated 8 years ago
  • Answered
I want to provide a menu item that will allow a viewer to automatically download a file from my website. How do I do this?
Photo of Keith Cobb

Keith Cobb

  • 9 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Gop


  • 7473 Posts
  • 2115 Reply Likes
Hi Keith,

Because there is no such thing as an HTML Download tag, the solution requires that the user context menu that appears when the right mouse button is clicked (or option plus the mouse button for one-button Macs). When you right click a link one of the options on the context menu is a "Save As..." or "Save link as...". When you choose that, the file on the other side of the link is downloaded to the hard drive, even if it can be opened in the browser.

The simplest way to emulate an HTML download tag is to simply tell people to right-click on the link to download the file.

For example:

Create the link as text or as a linked image, the example here is a text link linking to an MS Word file:

<a href="resources/file-name.doc">This is the MS Word file to download</a>

Right click or option-click the link and choose "Save As..." to download this file.

If you need additional information please leave a message here.