On May 24, 4:20 pm, Christian Schmidt <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have a form touploada picture and i try to validate it innewforms. But i 
> can not read the content-type. I get the error
> "'unicode' object has no attribute 'get'".
>

I had the same problem. I was using a forms.CharField with a
widget=forms.FileInput. This was causing django to turn the file
upload dictionary into a unicode string. I changed forms.CharField to
forms.Field and now it is working fine.
--Ray


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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