Is it possible to upload a file by url to cloud storage on app engine without writing to disk?

后端 未结 2 1153
攒了一身酷
攒了一身酷 2021-01-24 05:13

To upload a file from url to a cloud storage system, usually it is required to download that file on a server, and then upload it to the cloud storage.

For large files,

2条回答
  •  攒了一身酷
    2021-01-24 05:46

    Yes, it's possible. You can generate an upload URL (using Cloud Storage API) and provide it to a client that should use it in a POST request.

    Here is docs for PHP but this approach should be working for Python as well.

    Here is an example: https://github.com/GoogleCloudPlatform/storage-signedurls-python

提交回复
热议问题