Save As Dialog
I am working on a church website that will have mp3 downloads. Is it possible to cause the user to get the save as dialog box rather than the file playing inside the browser. I know I could just use the "right click and select save as" but would like to avoid that if at all possible. Is this something that could be accomplished using a script?
Greg K posted this at 19:19 — 1st February 2006.
He has: 2,145 posts
Joined: Nov 2003
I think you can do this by changing the header that gets sent. Check into the MIME types.
If i can find where I read about this, I'll post a link to it here.
DaveyBoy posted this at 19:20 — 1st February 2006.
They have: 453 posts
Joined: Feb 2003
i usually just make the files ZIP files, which forces a download.
02bunced posted this at 20:30 — 1st February 2006.
He has: 412 posts
Joined: May 2005
and saves bandwidth at the same time!
tm1274 posted this at 03:22 — 3rd February 2006.
They have: 2 posts
Joined: Feb 2006
Normally I would just zip the file as well, but there are some older individuals in the church that nay not understand how to unzip. I was hoping to find a work around. I saw some documentation on "force download" in another forum, but it looked contraversial whether it would or would not work and no one posted any code to try.
Riks posted this at 15:21 — 25th April 2006.
They have: 10 posts
Joined: Mar 2006
Here you have a solution to force download without using .zips:
http://www.sometricks.com/2006/04/23/download-pdf-jpg-gif-directly-from-the-web-browser/
How to get a website <--- My own site
Busy posted this at 21:40 — 25th April 2006.
He has: 6,151 posts
Joined: May 2001
You could make the zip excutable (.exe) but then the old "dont download any attachments or you'll get a virus" thing may pop up
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.