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

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

  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. 您的服务器将 URLUpload ID 都返回给客户端
  5. 客户端使用提供的 URLUpload ID
  6. 执行一个或多个 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天全站免登陆