Hey Jay,

On Mon, 2007-04-02 at 23:48 -0400, Jay Parlar wrote:
> On 4/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > At the moment, there is no easy way to change the base directory for
> > file uploads. You can however, change the filename to include
> > sub-directories, I believe (so change foo.blah to upload/dir/foo.blah).
> > If you want to try and change this, read the source in
> > django/db/models/fields.py and see what you can come up with. It does
> > get a bit hair, though, because of some curried functions.
> 
> Everytime a custom upload_to question comes up, I offer up my (now
> quite old) patch that allows it, but only in custom views:
> http://code.djangoproject.com/ticket/1994
> 
> The patch may not even apply anymore, but for someone who really needs
> custom upload_to, it's an option.

My opinion is that we should probably allow some customisation in this
area. It just isn't blindingly high priority at the moment (for me, at
least). But sometimes I fix tickets as a way of making repetitive
mailing list posts die down, so the priority may change shortly.

I remember having some concerns about your approach a while back, but
apparently they weren't significant enough for me to attach a comment to
the ticket. A bit careless on my part. :-(

I'll try to reconstruct my thinking in the background and post something
if/when I remember what was bothering me. I think it was a worry about
making this work correctly inside a model's overridden save() method,
but it's a bit fuzzy now. I'll get back to you.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to