【发布时间】:2015-01-25 11:03:55
【问题描述】:
我正在尝试将文件从 API Rest (Google Endpoints) 上传到 GCS,但我检索到了很多错误。我不知道是我使用了不好的方式还是只是 Google Endpoints 没有上传文件。
我正在尝试让我的客户将文件上传到我的项目存储桶中。
我读到“Endpoints 不接受 multipart/form-data 编码,因此您无法将图像直接上传到 Endpoints”。
Mike 回答了我 at this post 但不知道如何在我的项目中实现它。
我正在使用这个库(Python): https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/
如果可能,有什么更好的方法?有什么例子吗?
非常感谢。
【问题讨论】:
标签: python google-app-engine google-cloud-storage google-cloud-endpoints