Can I upload files to google cloud storage from url?

隐身守侯 提交于 2020-01-13 07:59:31

问题


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.



来源:https://stackoverflow.com/questions/18107545/can-i-upload-files-to-google-cloud-storage-from-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!