You need to set a 'Content-Disposition' header.

http://docs.djangoproject.com/en/dev/howto/outputting-pdf/?from=olddocs#complex-pdfs

Look within the 'some_view' definition. You need to generate a
HttpResponse object, set the response mimetype to the correct type of
file you're serving, and then set the 'Content-Disposition' key to
something like it says. Notice you can also set the filename if you
need to.

On Oct 30, 9:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> hi all i am using debian stable version 0.95
>
> and i would like know, how to tell django not to open some file types as
> JPG, PNG or MP3 in browser after click and rather open a classic menu to
> save the file.
>
> thank you very much pavel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to