Skip to Content
Menu
This question has been flagged
3937 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
17483
1
Aug 16
4954
1
Mar 22
5670
1
Jul 18
12423
2
Jun 18
22475