cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist>
Subject Re: Save pipeline results on client
Date Mon, 21 Feb 2005 00:33:48 GMT

On Feb 20, 2005, at 7:31 AM, JD Daniels wrote:

> Header("Content-Type: application/download");
> Header("Content-Disposition: attachment; filename=file.ext");
> did what you are after.
> I'm not too sure exactly how, but you should be able to setup a 
> pipeline that does whatever it is your doing normally, then send those 
> two headers.

The serializer is in control of the content type, so you just make an 
instance that's configured according to what you want; e.g.,

	    <serializer logger=""
         			mime-type="application/force-download" name="text-download"

To get control over the filename you can put this in your pipeline and 
smoke it :-):

	<act type="set-header">
               			value="attachment ; filename=whatever"


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message