[opencms-dev] Downloading images
Jonathan Woods
jonathan.woods at scintillance.com
Tue Oct 24 10:18:58 CEST 2006
I don't know of a way using a URL parameter through standard OpenCms, but
you could always create a link to a JSP of your own creation. Your JSP
would take as a URL parameter the path to the image concerned, and declare
itself as emitting the appropriate content-type; it could pipe the image
contents to the JSP output stream. Of course, you wouldn't be able to
statically export such resources, because Apache would serve them up as
straightforward image files.
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of SCHEDENIG Marian
Sent: 24 October 2006 08:46
To: opencms-dev at opencms.org
Subject: [opencms-dev] Downloading images
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.
--
Besuchen Sie uns auf der SYSTEMS 2006 in München vom 23.10. bis zum
27.10.2006.
Wir erwarten Sie in der Halle 1 auf dem Stand 121B.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list