On 14 июн, 22:09, Mikko Hellsing <[EMAIL PROTECTED]> wrote:
> try this: 'inline; filename=filename.pdf'
> ...that is to use inline instead of attachment
we tried 'inline', too, and it does not work.
Only solution which has been explained in original post fixed the
problem, and our site works
try this: 'inline; filename=filename.pdf'
...that is to use inline instead of attachment
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to
I've created #4148 a while ago. There are two distinct IE bugs it
solves:
1) Vary headers set for files that get opened in embedded applications
(MS Help, Acrobat, etc).
2) Any sort of no-caching headers for anything with content-
disposition. IE's stance on this is that if you specify that
On May 21, 2:55 am, Curtis <[EMAIL PROTECTED]> wrote:
> An alternate solution:
>
> response = HttpResponse(pdf, "application/pdf")
> response['Content-Disposition'] = 'attachment; filename=%s.pdf' %
> filename
> return response
>
> which works for me. I'd be interested to know if
On 5/21/07, Curtis <[EMAIL PROTECTED]> wrote:
> An alternate solution:
>
> response = HttpResponse(pdf, "application/pdf")
> response['Content-Disposition'] = 'attachment; filename=%s.pdf' %
> filename
> return response
I use a similar approach to output PDF's on our intranet
An alternate solution:
response = HttpResponse(pdf, "application/pdf")
response['Content-Disposition'] = 'attachment; filename=%s.pdf' %
filename
return response
which works for me. I'd be interested to know if it works for
others..
Cheers,
-Curt
On Apr 7, 4:57 pm,
On Apr 6, 7:07 am, "Mike Axiak" <[EMAIL PROTECTED]> wrote:
> Well I can't help but post a more complete solution (;-)) located
> athttp://www.djangosnippets.org/snippets/157/.
>
> To be honest, I find Django tries very hard to be compliant with W3C
> (adding things in favor of WCAG, using
Well I can't help but post a more complete solution (;-)) located at
http://www.djangosnippets.org/snippets/157/.
To be honest, I find Django tries very hard to be compliant with W3C
(adding things in favor of WCAG, using XHTML when possible, etc). This
usually isn't a problem because most
Hi All,
I found that Django can not serve PDF files from view, and I feel this
is wrong and must be fixed, so I try to raise this topic now.
Problem description:
We've build e-commerce site which sells PDF files as well. For obvious
reasons I can not put all our PDF files as static files on