Can I upload files to google cloud storage from ur

2020-03-01 06:45发布

问题:

Code Exemple:

gsutil cp "http://www.exemple.com/file.txt" "gs://bucket/"

回答1:

You can stream the output of curl to the gsutil cp command as follows:

curl http://www.example.com/file.txt | gsutil cp - gs://bucket/file.txt


回答2:

There is Cloud Storage Transfer Service with an option to upload list of URLs though not very simple and more batch-oriented.