Google Cloud Storage在下载公共文件时要求登录

Ami*_*han 3 google-cloud-storage google-cloud-platform

我通过外部API将图像上传到Google Cloud Storage存储桶中。我还分配了所有访问权限。我与朋友共享了文件下载链接,类似于

https://storage.cloud.google.com/buketName/fileName.extension
Run Code Online (Sandbox Code Playgroud)

但是问题在于,有时它要求输入Google身份验证登录信息,有时却不要求登录。

存储桶文件权限授予所有用户,但有时仍要求登录。不知道为什么吗

kom*_*ich 11

要在不登录Google帐户的情况下访问公共文件,请使用以下链接:

https://storage.googleapis.com/[BUCKET_NAME]/[FILE_NAME]
Run Code Online (Sandbox Code Playgroud)

为了访问带有您提供的链接的文件,即使它们是公开的,也必须使用您的Google帐户登录。

  • 这有配额限制吗? (2认同)