Click to See Complete Forum and Search --> : invoke download box


mdanan
12-18-2003, 09:55 PM
How do I invoke a download box so my users can download an image file rather than right-clicking on it?

I've used the php version of it, yet my server doesn't support it.

Please help...

fredmv
12-18-2003, 10:00 PM
The simplest solution would be to provide the file in .zip format (or equivalent formats).

mdanan
12-19-2003, 03:10 PM
Is there any other way?

I mean, it would be kind of exhaustive for users to go through the zip program to open just one file.

AdamGundry
12-20-2003, 06:19 AM
You need to get your server to provide the Content-Type header as application/octet-stream instead of the normal one (such as image/gif). This is what the PHP script does, but you could in principle use any server-side language. I don't know of any way you can do it on the client side, however.

Adam