Hi Marty,

So currently there is no way of getting the dimensions for an image?

On Jul 25, 6:09 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Fri, Jul 25, 2008 at 12:31 PM, Darthmahon <[EMAIL PROTECTED]> wrote:
> > I've just upgraded my Django to the trunk and noticed some code I need
> > to change. I've got a form that uploads images, looks like Django
> > throws up an error if the file is not an image, which is nice but I
> > also need to check if the image is too big/small.
>
> Well, the documentation[1] says to look at
> self.cleaned_data['avatar'].file_size, but you're really after is
> self.cleaned_data['avatar'].size. I've just opened a ticket[2] for
> this, and it should get fixed soon.
>
> -Gul
>
> [1]http://www.djangoproject.com/documentation/upload_handling/#uploadedf...
> [2]http://code.djangoproject.com/ticket/7963
--~--~---------~--~----~------------~-------~--~----~
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