[opencms-dev] Re: opencms-dev Digest, Vol 116, Issue 2
Fabian Huschka
fabian.huschka at componio.net
Tue Oct 24 11:17:12 CEST 2006
Hello Marian,
try to add this directive to the HTTP header by modifying the
HttpServletResponse object:
<%
response.addHeader("content-disposition","attachment");
%>
...
page content
....
Best Regards,
\Fabian
Marian.Schedenig at qualysoft.com wrote:
> Message: 13
> Date: Tue, 24 Oct 2006 09:45:46 +0200
> From: "SCHEDENIG Marian" <Marian.Schedenig at qualysoft.com>
> Subject: [opencms-dev] Downloading images
> To: <opencms-dev at opencms.org>
> Message-ID:
> <4507516EF55CD442831FB74B23276ECEEC24D1 at exchange.qualysoft.hu>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi!
>
> I'm trying to add a button to my pages to "download" an image from a gallery. I.e., I want the button to link to a gallery image, but I want the image to be returned with "content-disposition: attachment", so that most browsers would ask the user whether to display or save the image.
>
> Is there a way to do this with standard OpenCms? Perhaps through an URL parameter, like the image scaling feature?
>
> Thanks,
> Marian.
--
componio GmbH
Robert-Bosch-Straße 7
D - 64293 Darmstadt
Tel: +49.6151.500.367.11
Office: +49.6151.500.367.0
Fax: +49.6151.500.367.6
Internet: http://www.componio.net
E-Mail: componio at componio.net
More information about the opencms-dev
mailing list