我可以使用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?
推荐答案
是的,这是可能的.
对于已通过Cloud Storage服务认证的服务器和希望授予访问权限的客户端,典型的签名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屋!
查看全文