Skip to Content
Menu
This question has been flagged
2971 Views

Hi I have this error: 

image_data = upload.read()

AttributeError: 'unicode' object has no attribute 'read'


When i call my controllers:

The variable request.params['upload']  contains " <FileStorage: u'ir_attachment_117.jpeg' ('image/jpeg')>" 


Avatar
Discard
Related Posts Replies Views Activity
3
Mar 24
15320
1
Aug 16
3783
1
Mar 22
4289
1
Jul 18
11222
2
Jun 18
19858