Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3862 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
17324
1
aug. 16
4865
1
mar. 22
5615
1
jul. 18
12329
2
jun. 18
22222