Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4352 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Mar 24
18074
1
Agu 16
5392
1
Mar 22
6122
1
Jul 18
12995
2
Jun 18
23431