Re: problems serving PDF file from view

2007-06-14 Thread [EMAIL PROTECTED]
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

Re: problems serving PDF file from view

2007-06-14 Thread Mikko Hellsing
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

Re: problems serving PDF file from view

2007-05-22 Thread Mike Axiak
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

Re: problems serving PDF file from view

2007-05-22 Thread Mike Axiak
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

Re: problems serving PDF file from view

2007-05-21 Thread Marc Fargas Esteve
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

Re: problems serving PDF file from view

2007-05-21 Thread Curtis
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,

Re: problems serving PDF file from view

2007-04-07 Thread SmileyChris
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

Re: problems serving PDF file from view

2007-04-05 Thread Mike Axiak
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

problems serving PDF file from view

2007-04-05 Thread [EMAIL PROTECTED]
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