Force a Download of any file – PDF, mp3, mp4, etc

I’ve been helping clients setup their memberships, telesummits, and other events where their is some type of file that needs to be available for those participating and the request is to make sure they can view it online and download it.

The easiest way I can achieve this is to put a View Online button along with a Download button, or drop it in with some text – either way the call to action needs to be there to help guide them on how they can get it.

Here is the coding on how to make the save as window to pop up every time… add this into your coding:

<a target=”_blank” href=”URL-to-File-Here” download><img alt=”File-Name-Here” src=”Image-URL-Here-this-is-optional” width=”xx” height=”xx” />Text Here: This is Optional</a>

NOTE: Only change the highlighted areas.