Link to a .mp4 file for download
-
Friday, October 12, 2012 5:57 PM
I am asking on someones behalf how to implement a link to a .mp4 file for download. Do you simply put the .mp4 file in a directory and create a link to that directory and file or would that only play the file?
The goal is to make the open/save as window to pop up when the link is clicked.
Cheers, Ben
All Replies
-
Friday, October 12, 2012 6:08 PM
A direct link to the mp4 file on the page may get opened in the users default media player. If you really want to force a download then use the method described here:
http://www.ew-resource.co.uk/js-tips.aspx
HTH
Ian Haynes
EW - V4 Add-Ins
EW - Resources, hints and tips
EW - Design for the Mobile Web
expression(web.blog) -
Friday, October 12, 2012 7:47 PM
You can also force a download prompt by zipping the file. Zip is not a playable extension, so the browser should offer a download prompt when the link is clicked. Once downloaded, all modern OSes have native support for zip files, so the visitor can open a play it without a problem.
cheers,
scottPlease remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.
- Marked As Answer by Travel Trips Friday, October 12, 2012 8:33 PM
-
Friday, October 12, 2012 8:34 PM
Thanks guys!
Both answers are great but paladyn's was the easiest and quickest plus the one I was trying to think of.
Cheers, Ben

