1
class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
reseller_id = self.request.get('reseller_id')
upload_files = self.request.get('logo_img')
if upload_files:
blob_info = upload_files[0]
key = blob_info.key()
我得到一個錯誤在該行錯誤獲取主要從Blob_Info在谷歌應用程序引擎
key = blob_info.key()
錯誤:
AttributeError: 'str' object has no attribute 'key
的東西是上傳文件正確,我可以看到它在GAE blob查看器中。我複製從這裏上傳實例驗證碼:
https://developers.google.com/appengine/docs/python/blobstore/overview#Complete_Sample_App
我很茫然,爲什麼我不使用blob_info.key拿到鑰匙值()任何指針將受到歡迎。
這是它!謝謝! – ChickenFur