Forum OpenACS Development: Re: File-storage download: How to _force_ a browser to download a file

Hi Frank,

I think you might be interested in the Content-Disposition HTTP header:

    ns_set put [ad_conn outputheaders] Content-Disposition attachment

You can also optionally add a filename parameter as well.  See:

    http://www.faqs.org/rfcs/rfc2183.html

for more info.

Lastly, I'm not sure if all browsers support this header.