On Mon, Dec 03, 2007 at 10:03:50PM -0800, Anil wrote:
> ${ h.link_to_remote("Download", dict(url=h.url(controller="export",
> action="pdf")) ) }
> 
> I have a link like that.
> 
> The action "pdf" generates a PDF file. Then, I want to "show" this PDF
> file to the browser (for download). How can I do this? I am thinking I
> need to send back some headers, but not sure if that'll work?

Try this before you return the file or a FileApp or whatever:

response.headers['content-type'] = 'application/pdf'

Cheers
 Christoph


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to