Something tells me the validation actually belongs to the form, but how can I get to the image size from within the form?
===forms.py class ImageForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(ImageForm, self).__init__(*args, **kwargs) def clean_image(self): uploadedFile = self.cleaned_data['image'] #TODO: check image size, but how? return self.cleaned_data['image'] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---