Skip to Content
Menú
This question has been flagged
3875 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
3
de març 24
17330
1
d’ag. 16
4879
1
de març 22
5619
1
de jul. 18
12337
2
de juny 18
22243