Save As Dialog

They have: 2 posts

Joined: Feb 2006

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's picture

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's picture

They have: 453 posts

Joined: Feb 2003

i usually just make the files ZIP files, which forces a download.

02bunced's picture

He has: 412 posts

Joined: May 2005

and saves bandwidth at the same time!

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.

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's picture

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.