【发布时间】:2014-10-05 12:20:09
【问题描述】:
write_blob 函数 (found here) 似乎使用了 Blobstore 中已弃用的 Files API。
def write_blob(self, data, info):
blob = files.blobstore.create(
mime_type=info['type'],
_blobinfo_uploaded_filename=info['name']
)
with files.open(blob, 'a') as f:
f.write(data)
files.finalize(blob)
return files.blobstore.get_blob_key(blob)
See here 了解弃用信息
如何重写这个函数?
【问题讨论】:
标签: python google-app-engine blobstore jquery-file-upload blueimp