Hey guys,
I can't seem to find a good resource for the best way to handle this, so I
thought I'd ask.

What is the best way to handle an upload through an ImageField in a custom
form?

For example:
class ProfileForm(forms.Form):
    first_name         = forms.CharField(label='First Name', required=True)
    last_name         = forms.CharField(label='Last Name', required=True)
    email             = forms.EmailField(label='Email Address',
required=True)
    avatar             = forms.ImageField(label='Change Profile Image',
required=False )

How do I get to the image when the avatar field has an image uploaded
through it?

Thanks in advance.

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