Skip to Content
Menu
This question has been flagged
4133 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
17716
1
rugp. 16
5133
1
kov. 22
5858
1
liep. 18
12664
2
birž. 18
22867