On 08/07/11 20:26, Karol Tomala wrote:
You have to set MIME type on Response object according to the file
type. Look at WebOb.Response documentation on how to set headers.
Required headers (at least) are probably:
Content-Type: YOU_MIME_TYPE
Content-Transfer-Encoding: binary
Content-Description: File Transfer
Content-Disposition: attachment; filename=YOUR_FILE_NAME
Hi Karol.
So after setting this headers and other response attributes,what should
be the end?
Should it be a json return?
Or should I justt render the return or what is the last thing my
controller action is supposed to do?
Happy hacking.
Krishnakant.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
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.