Skip to content

storage: bucket.makePublic(fd, cb) & bucket.makePrivate(fd, cb) #162

@ryanseys

Description

@ryanseys

The web interface supports a shared-publicly checkbox (see screenshot below). We should support this functionality for easy-share links! BAM!

Something like this:

bucket.makePublic('filename.png', function(err, public_url) {
  console.log(public_url); // https://storage.googleapis.com/bucket-name/filename.png
}); // could also return file stat instead of public url for more info

bucket.makePrivate('filename.png', function(err, stat) {
  console.log(stat.acl); // [] (assuming acl is the ObjectAccessControls object here) 
});

Screenshot:

screen shot 2014-08-31 at 11 25 03 pm

Metadata

Metadata

Assignees

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