Skip to content

Add an example of "how to make a file public" in the docs #350

Closed
@jgeewax

Description

I've heard from a lot of people that this is the most common request, so it'd be really cool if we had an example in our docs.

ie:


To make an object publicly readable, you might do:

var storage = gcloud.storage();
var albums = storage.bucket('albums');

albums.acl.add({
  scope: 'allUsers',
  permission: Storage.acl.READER_ROLE
}, function(err, aclObject) {});

Metadata

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions