允许在谷歌云存储上公开共享文件 [英] Allowing publicly shared files on google cloud storage

查看:20
本文介绍了允许在谷歌云存储上公开共享文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌云存储允许用户查看公开共享?"存储管理器中的字段,允许您直接共享数据的 URL.

Google cloud storage allows users to check a "publicly shared?" field in the storage manager that allows you to share a URL to the data directly.

我正在使用谷歌应用引擎并将数据发送到存储,但我希望默认公开共享.

I'm using google app engine and sending data to the storage, but I would like to have it publicly shared by default.

我该怎么做?除了手动执行之外,他们的文档似乎没有提及任何内容.

How can I do this? Their docs does not seem to mention anything about this, except manually doing it.

我正在使用 python,但它可能没有太大区别.

I am using python but it probably doesn't make much of a difference.

推荐答案

您可以使用 GSUtil 工具并设置存储桶上的 默认 ACL.
在默认 ACL 中允许每个人允许对存储桶进行 READ,设置默认 ACL 后,存储桶中的每个新文件都将公开可用.

You can use the GSUtil tool and set and Default ACL on the bucket.
In the default ACL allow everyone to allow READ on the bucket, after setting the default ACL every new file in the bucket will be publicly available.

这篇关于允许在谷歌云存储上公开共享文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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