我可以使用 Google Cloud Storage 签名 URL 进行可恢复上传吗? [英] Can I do a resumable upload with a Google Cloud Storage signed URL?
本文介绍了我可以使用 Google Cloud Storage 签名 URL 进行可恢复上传吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 Google Cloud Storage,我想向客户传递必要的信息以进行可恢复上传.这可能吗?
Using Google Cloud Storage, I'd like to pass a client the necessary information to do a resumable upload. Is this possible?
推荐答案
是的,这是可能的.
对于已通过云存储服务身份验证的服务器和希望授予访问权限的客户端,典型的签名 URL 上传工作流程如下所示:
With a server that has authenticated to the Cloud Storage service and a client it wishes to grant access to, the typical signed URL upload workflow looks like this:
- 客户端请求签名以便执行 PUT
- 您的服务器使用这里描述的方法创建并返回一个签名的
URL
- 客户端使用返回的
URL
执行 PUT
- Client requests a signature so it can do a PUT
- Your server creates and returns a signed
URL
using the method described here - Client does a PUT with the returned
URL
可恢复的工作流程如下所示:
The resumable workflow looks like this:
- 客户端请求签名以便执行 PUT
- 您的服务器会使用此处描述的 方法创建并返回一个签名的
URL
- 您的服务器发出 POST 请求以启动可恢复上传,如此处所述
- 您的服务器将
URL
和Upload ID
都返回给客户端 - 客户端使用提供的
URL
和Upload ID
执行一个或多个 PUT
- Client requests a signature so it can do a PUT
- Your server does creates and returns a signed
URL
using the method described here - Your server makes a POST request to initiate the resumable upload as described here
- Your server returns both the
URL
and theUpload ID
to the client - Client does one or more PUTs using the provided
URL
andUpload ID
这篇关于我可以使用 Google Cloud Storage 签名 URL 进行可恢复上传吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文