-
Notifications
You must be signed in to change notification settings - Fork 146
Question: how to make the uploaded image public after uploading #21
Comments
And if you try set visibility afterwards? |
@zoidbergwill If I do like that:
I get
|
And what about the following?
|
This looks like a dupe of #8, I think. We should improve the docs, and errors if possible. |
@zoidbergwill yep it is pretty much the same, however I am getting errors while setting the visibility. If I do as you said then I get the following error:
Which is weird because I have read & write permissions set on my bucket. I even tried to give "all" permissions. The result is the same. |
What permissions does the service account you're using have? |
Weird. Not sure how those match to either of these: https://cloud.google.com/storage/docs/access-control/iam-roles Ahhhhh, the following page mentions that you need Storage Owner for editing bucket metadata and ACLs: https://cloud.google.com/storage/docs/access-control/lists#permissions I assume it means bucket and object ACLs. |
Another option would be using a bucket with a default object ACL of public? |
I tried the following: |
This worked for me
Using |
Just in case anyone else comes here from Google, I was having a similar issue. I uploaded files without issue and set the visibility to public. However, when viewing the public url I was prompted to login to my Google account. This was caused by me using an incorrect base url. I was using https://storage.cloud.google.com/bucket/file.txt instead of https://storage.googleapis.com/bucket/file.txt. using the latter url resolved my issues. |
Hey, I have a question. I am trying to upload image and make it public. I've made the right permissions to my bucket but for some reason I am getting exception:
This is how I upload and it gives me the above error:
But it works like this:
The text was updated successfully, but these errors were encountered: