Log in

View Full Version : mov Save As



nate51
08-28-2008, 01:49 PM
There might be a simple answer to this simple question, but I havent found it yet.

I have a Apple Quick Time mov file and when I link my page to the mov file when clicked the page loads the movie and plays it embedded in the html page. Is there a string of code that will force the mov to prompt for download instead of play directly from the link?

magicyte
08-28-2008, 10:44 PM
Yes. The only way to do this is to upload the .mov file onto your website. Then use the window.open() technique. It should allow the user to download the file from your website.

-magicyte

djr33
08-29-2008, 04:03 AM
You can't properly force a browser to make someone download a file. You can suggest that they "right click, save as", though it would be their choice to load in the browser, too. You can try to send a header that will force a download, but this isn't proper code and it might be ignored by some browsers.
One way, alternatively, to force a download every time is to encase the .mov in a .zip file, which can never open directly in a browser, so they must download then use the .mov out of the browser.
This has nothing really to do with a .mov specifically, so you can just search for "force download" and you'll find a number of related options/solutions. (It would be basically the same for an image or audio file, for example.)

magicyte
08-29-2008, 03:03 PM
Yeah. That too.

-magicyte