On Wed, 17 Sep 2008 20:52:16 -0700 (PDT), akonsu <[EMAIL PROTECTED]> wrote: > > ok :) so then your solution would be to set up your own file storage > with location that you need. > > konstantin
Sounds nice in theory, but I'm having trouble figuring out how to change the location dynamically, even using a file storage object. Faheem. > On Sep 17, 11:45 pm, Faheem Mitha <[EMAIL PROTECTED]> wrote: >> [This message has also been posted.] >> >> On Wed, 17 Sep 2008 20:14:54 -0700 (PDT), akonsu <[EMAIL PROTECTED]> wrote: >> > hm, i never used a callable for uplod_to and what you are saying >> > might be true, but if it is, how this behaviour would interact with >> > the possibility to use file storage for uploaded files where >> > MEDIA_ROOT would make little sense? >> > konstantin >> >> Judging by the documentation, the location (top level directory >> holding the files) is passed as an argument to the file storage >> object. In other words, the file storage object determines what the >> top level directory is. The upload_to argument corresponds to the >> subdirectory where the file is placed. >> >> I could not understand the code, so this summary may be incorrect. >> >> Faheem. >> >> > On Sep 17, 11:00 pm, Faheem Mitha <[EMAIL PROTECTED]> wrote: >> >> >> Thanks for the suggestion. However, upload_to is appended to >> >> settings.MEDIA_ROOT to determine the path the file is uploaded >> >> to. Therefore, it is not possible to (for example) change upload_to so >> >> that files are uploaded to '/tmp'. >> >> Faheem. > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---