ImageField Validation Fails with Deprecation Warning
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I get the following apache error on trunk revision 7825 when adding images to a model entry.
site-packages/django/core/validators.py:180: DeprecationWarning: The dictionary access of uploaded file objects is deprecated. Use the new object interface instead. content = field_data['content']
The admin interface displays the following error message:
Upload a valid image. The file you uploaded was either not an image or a corrupted image.
I have libjpeg, PIL, etc. installed. This was working code before the update. Fails on CentOS 4.6 and Mac OS X 10.5.4
- Django revision is 7825.
- python 2.3.4-14.4.el4_6.1
- httpd 2.0.52-38.ent.centos4
- MySQL-python.i386 1.2.1_p2-1.el4.1
- mod_python.i386 3.1.3-5.1