我可以从网址上传文件到Google云端存储吗? [英] Can I upload files to google cloud storage from url?

查看:95
本文介绍了我可以从网址上传文件到Google云端存储吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码示例:

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

推荐答案

您可以按如下方式将curl的输出流式传输到gsutil cp命令:

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

这篇关于我可以从网址上传文件到Google云端存储吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆