コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3991 ビュー

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


アバター
破棄
関連投稿 返信 ビュー 活動
3
3月 24
17583
1
8月 16
5032
1
3月 22
5732
1
7月 18
12516
2
6月 18
22629