Issues

Issue #18 resolved

'ImageFieldFile' object has no attribute 'content_type' on Django 1.1

Anonymous created an issue

I just updated Django to version 1.1 and now I get this error:

Exception Type: AttributeError Exception Value: 'ImageFieldFile' object has no attribute 'content_type' Exception Location: mosso.py in _save, line 86

Comments (6)

  1. Anonymous

    Change line 86 from: cloud_obj.content_type = content.content_type To: cloud_obj.content_type = content.file.content_type

  2. Anonymous

    It works! But when I later replaced ImageFileField to ImageWithThumbsField I got a

    'cStringIO.StringI' object has no attribute 'content_type'

    Going back to "content.content_type" brings back the same old error(except with ImageWithThumbsField):

    'ImageWithThumbsField' object has no attribute 'content_type'

    Though, that is probably a flaw with django-thumbs.

  3. Log in to comment