Batiste wrote:
Request Method:POST
Request URL:http://127.0.0.1:8080/publier-media/1/
Exception Type: TypeError
Exception Value: string indices must be integers
Exception Location:
/usr/lib/python2.4/site-packages/Django-0.90-py2.4.egg/django/core/validators.py
in isValidImage, line 144
A link to the function :
http://code.djangoproject.com/browser/django/trunk/django/core/validators.py#l144
I have already lost days on this issue. Some help will be appreciated.
I remember my struggles with such an issue, though I'm not sure it's the
same.
The form data should include not only 'image' field but also
'image_file' field. This is rendered by FormWrapper as a file upload
control and only then file's contents will be in a POST data (or
actually in request.FILES) visible to a manipulator.