我可以使用Google Cloud Storage签名的URL来恢复上传吗? [英] Can I do a resumable upload with a Google Cloud Storage signed URL?

查看:159
本文介绍了我可以使用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:

  1. 客户端请求签名,以便可以执行PUT
  2. 您的服务器使用在此描述的方法创建并返回签名的URL
  3. 客户端对返回的URL
  4. 进行PUT
  1. Client requests a signature so it can do a PUT
  2. Your server creates and returns a signed URL using the method described here
  3. Client does a PUT with the returned URL

可恢复的工作流程如下:

The resumable workflow looks like this:

  1. 客户端请求签名,以便可以执行PUT
  2. 您的服务器确实使用在此描述的方法创建并返回签名的URL
  3. 您的服务器发出POST请求,以启动此处描述
  4. 的可恢复上传. >
  5. 您的服务器将URLUpload ID都返回给客户端
  6. 客户端使用提供的URLUpload ID
  7. 执行一个或多个PUT
  1. Client requests a signature so it can do a PUT
  2. Your server does creates and returns a signed URL using the method described here
  3. Your server makes a POST request to initiate the resumable upload as described here
  4. Your server returns both the URL and the Upload ID to the client
  5. Client does one or more PUTs using the provided URL and Upload ID

这篇关于我可以使用Google Cloud Storage签名的URL来恢复上传吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆