On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase <django.us...@tim.thechases.com> wrote: > On 2013-03-19 18:42, Larry Martell wrote: >> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which >> says to use the Content-disposition header to trigger the save as. >> I've done this, but I don't get a save as dialog box. The file is >> just downloaded to a download dir with the name I have provided. >> >> Is there a way I can specify from my app what directory I want the >> file saved to? > > I believe this is a browser-configuration setting controlled by the > user, not by HTTP metadata. In Firefox, I have the option to either > open the file or save the file, along with a check-box to "always do > this"; FF also provides me the control to specify where the file goes > on a per-download basis, or to default to a given location. > > tl;dr: I don't think your web-app can take away this control from the > user.
That's what I thought, but my client wants the file saved to a specific location. This is an internal app, not something for public usage. Perhaps I can pass the file back in a context and save it from javscript. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.