On Thu, Apr 2, 2009 at 1:38 AM, Hamza <dr.hamzam...@gmail.com> wrote:

>
> Hello
>
> am having a problem in uploading images , which i set ImageField to
> upload the image to /Photo/ directory , however it works , and
> uploaded the photos as expected , but now its not working : and
> display a message :
> This field is required.  ,
> when i submit a photo in it , it repeat the message as nothing
> submitted !!
>
> Though as i go to the admin , i notice the submitted item there
> without a photo , so i submit the Photo with the admin form and its
> working perfectly !!!
>
> i don't know exactly what is wrong , which display this error :
>
> " Caught an exception while rendering: The  +attribute has no file
> associated with it. "
>
> Any help !
>
> Regards
>
>
> >
>
Are you properly setting the enctype on the HTML form and passing
request.FILES to the form object?

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to