Tuesday, July 31, 2012

Re: returning a zip file for download

On Tue, Jul 31, 2012 at 5:03 PM, Tomas Neme <lacrymology@gmail.com> wrote:
> The weird thing is that I'm getting just a pdf file (ok, I'm testing with a
> single file, so I don't know if that's the problem)

shoot in the dark: maybe the browser is interpreting the zipped PDF as
a zip-encoded response, and decoding it for you.

the right mimetype and content-disposition (as suggested by Nikolas) should help

--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment