如何使用 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。