Skip to Content
Menu
This question has been flagged
3926 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
17451
1
Aug 16
4931
1
Mar 22
5646
1
Jul 18
12393
2
Jun 18
22378