【发布时间】:2014-11-15 18:05:50
【问题描述】:
如何使用 blobStore 将文件/图像上传到 Appengine 数据存储区?我正在使用 Google Cloud Endpoints。
这是我的模型:
class ProductImage(EndpointsModel):
_message_fields_schema = ('product', 'enable', 'image')
product = ndb.KeyProperty(Product)
image = ndb.BlobKeyProperty(required=True)
enable = ndb.BooleanProperty(default=True)
如何从 API Explorer 对其进行测试?在前端,我使用的是 AngularJS。
【问题讨论】:
标签: python google-app-engine endpoints-proto-datastore