Re: newforms image upload and validation

2008-03-26 Thread [EMAIL PROTECTED]
thanks karen..guess I'm overworked -- I was trying out something like "if self.cleaned_data['avatar'] == ' ' " failed to notice that the ImageField is 'None' if empty... thanks a bunch..you made my day :-) -pd. On Mar 26, 10:07 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Mar 26,

Re: newforms image upload and validation

2008-03-26 Thread Karen Tracey
On Wed, Mar 26, 2008 at 5:15 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm using an avatar imagefiled in the model and have defined an > imagefield in the registration form I'm using for the user to sign up. > avatar is not a required field (both in the form as well as in the > model) >

newforms image upload and validation

2008-03-26 Thread [EMAIL PROTECTED]
I'm using an avatar imagefiled in the model and have defined an imagefield in the registration form I'm using for the user to sign up. avatar is not a required field (both in the form as well as in the model) I've got validation included in the Registration Form for the uploaded image size: def