I can successfully upload file in the Google JSON API using [Objects: insert] by passing binary file content. I was curious if there is a way to upload by passing an open link in a JSON payload allowing GCP to retrieve the file. Thanks!
Asked
Active
Viewed 900 times
0
-
1This [post](https://stackoverflow.com/questions/19890062/put-files-to-google-cloud-storage-gcs-via-signed-urls) shows you how to use Signed URLs to PUT objects in Cloud Storage via the Client Libraries. You can also use the `gsutil` to copy the content of a URL into a GCS bucket, as shown [here](https://stackoverflow.com/questions/18107545/can-i-upload-files-to-google-cloud-storage-from-url). Does this work for you? – sllopis May 25 '20 at 08:40
-
Thank you. Yes, this looks promising. I'll send an update after trying. – Erich Wehrmann Jun 01 '20 at 12:39
-
Does this answer your question? [Can I upload files to google cloud storage from url?](https://stackoverflow.com/questions/18107545/can-i-upload-files-to-google-cloud-storage-from-url) – Dmitry Mukhin Jul 01 '21 at 10:49
1 Answers
-1
It seems Signed URLs
can help you do this.
you can check here
https://cloud.google.com/storage/docs/access-control/signed-urls

sasa
- 1
-
Looks like singed URLs are for retrieving/accessing files already in GCP. I'm looking for a way to push data to GCP by providing it a URL where the file currently lives. – Erich Wehrmann May 23 '20 at 16:56
-
1