You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by wc184 <md...@hotmail.com> on 2007/03/07 16:57:33 UTC
Re: [was: Stripping down Cocoon] File Upload/Download
Thanks for you reply, Mark.
I found this on the Cocoon Wiki:
http://wiki.apache.org/cocoon/DownloadFilesToLocalDisk?highlight=%28download%29
I'm pretty new to Cocoon. I'm not sure how to declare the header. What else
do I need to configure other than setting the pipline in the sitemap file?
Any pointers? Thanks.
WC
Mark Lundquist-3 wrote:
>
> Hi,
>
> On Mar 6, 2007, at 3:44 PM, wc184 wrote:
>
>> The problem I have is the URL has to match "dlchs*-_-*.xml". This,
>> subsequently, prompts the user to save the file under this format by
>> default. I would IE to prompt the user to save under the original
>> filename.
>
> I think you need these response headers:
>
> Cache-Control: Pragma:no-cache
> Content-Disposition: attachment; filename=what.ever
>
> You can use the HTTPHeaderAction within your pipeline to set those from
> the sitemap.
>
> HTH,
> —ml—
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/File-Upload-Download-tf3359151.html#a9355710
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org