Skip to Content
Menu
This question has been flagged
4398 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
18123
1
Aug 16
5431
1
Mar 22
6160
1
Jul 18
13019
2
Jun 18
23476