Skip to Content
मेन्यू
This question has been flagged
4137 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
मार्च 24
17723
1
अग॰ 16
5135
1
मार्च 22
5862
1
जुल॰ 18
12671
2
जून 18
22870