跳至內容
選單
此問題已被標幟
4163 瀏覽次數

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
17745
1
8月 16
5156
1
3月 22
5892
1
7月 18
12696
2
6月 18
22903