On 8/15/06, Nathan Ekstrom <[EMAIL PROTECTED]> wrote:
>
> Hey all,
> I've  tried searching the list for this but I probably don't know the
> right key words to use.  What I would like to do is customize the
> behavior of the ImageField and FileField of models.  Instead of saving
> to media/<date stuff>/<image name> I'd like to be able to save it to a
> custom directory dependant on another field in the row, also in the
> case of an image I would like to generate some thumbnails and save them
> to different directories.  Is there a way to do this with the admin
> interface or will I need to do it another way.
> Thanks for your help,
> Nathan
>

Sadly, there's no built in way.

There are a few custom Thumbnail generation fields out there
(http://www.verdjn.com/wiki/PhotoField,
http://trac.studioquattro.biz/djangoutils/wiki/Thumbnail).

It's a feature I really want too, and someday I'll try to find some
time to put together an acceptable solution. Until then...

If you want a custom upload_to, and you're *not* using the admin, you
can try my old patch: http://code.djangoproject.com/ticket/1994   It
lets you set the upload_to field in your own view, but won't do
anything for the admin.


Jay P.

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

Reply via email to