On Dienstag, 13. Februar 2007, Brice Carpentier wrote:
> On 2/13/07, Dirk Eschler <[EMAIL PROTECTED]> wrote:
> > i use ImageWithThumbnailField to upload screenhots. In the save method i
> > want to set some additional model fields, like filesize and width/height
> > of the uploaded image. The problem is, that self.image isn't defined at
> > this point, the same entry has to be saved twice in the admin.
>
> yeah, this is a problem.
> As for width and height, there are width and height parameters to
> ImageWithThumbnailField that you can use. (Look at the ImageField
> documentation)

I will check the field for these values, thanks.

However.. what if i want to do more with the image, like getting the filesize, 
or something completely different where i need to access the image?

I've read something about a post_save signal. Could that be used for the job?

Best Regards

-- 
Dirk Eschler <mailto:[EMAIL PROTECTED]>
http://www.krusader.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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