Skip to Content
Menú
This question has been flagged
3998 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
17585
1
d’ag. 16
5035
1
de març 22
5733
1
de jul. 18
12517
2
de juny 18
22645