Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4126 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
mar. 24
17710
1
aug. 16
5132
1
mar. 22
5855
1
jul. 18
12661
2
jun. 18
22865