Page 1 of 1

Can you force the "Save As" window for a download?

Posted: Fri Dec 02, 2011 10:46 am
by simonmlewis
We have a 'download' link that lets someone download an image.
Right now it is just linking to the image in the browser, and so the user then has to right click....etc....

Is there a way to force it straight to 'Save As' ???

Re: Can you force the "Save As" window for a download?

Posted: Fri Dec 02, 2011 11:23 am
by Weirdan
Browser relies on mime type the server provides. Generally, if it doesn't know how to handle the file itself it proposes user to either select the application or save the file. Mime type set to 'application/octet-stream' is what many people use as it's too generic for browser to find suitable plugin to handle.

What does this have to do with javascript?

Re: Can you force the "Save As" window for a download?

Posted: Fri Dec 02, 2011 11:26 am
by simonmlewis
It might have a lot to do with Javascript, as I thought it would take that to make this work.

How do I use "application/octet-stream"?