Hi there!

I've seen this in patches and stuff before, but most don't work anymore.
Perhaps some Django-insider could advice me how to make Django rename
uploaded files according to some schema when saving them to disk?

Preserving the original filename is ok for most cases, but sometimes it
just doesn't make sense.

It would be nice to be able to include this in the upload_to parameter.
Something like
'upload/%(model_name)s/%(instance_id)s.%(mimetype_extension)s' perhaps?
Maybe, if the parameter ends with a slash, the handler could know "ok.
this is a directory. let's keep the original filename".

Just brainstorming, anyways. I don't know enough about Django internals
to come up with a patch like this.

~ Chris


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