Can I do a resumable upload with a Google Cloud Storage signed URL?

前端 未结 2 1246
自闭症患者
自闭症患者 2020-12-13 21:47

Using Google Cloud Storage, I\'d like to pass a client the necessary information to do a resumable upload. Is this possible?

2条回答
  •  醉话见心
    2020-12-13 22:27

    Yes, this is possible.

    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. 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. 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

提交回复
热议问题