Can I upload files to google cloud storage from url?

前端 未结 3 1619
猫巷女王i
猫巷女王i 2020-12-16 12:47

Code Exemple:

gsutil cp \"http://www.exemple.com/file.txt\" \"gs://bucket/\"
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 13:32

    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
    

提交回复
热议问题