Skip to Content
Menu
This question has been flagged
3866 Rodiniai

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')>" 


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
kov. 24
17329
1
rugp. 16
4876
1
kov. 22
5618
1
liep. 18
12334
2
birž. 18
22237