GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — storage: bucket.makePublic(fd, cb) & bucket.makePrivate(fd, cb) · Issue #162 · googleapis/google-cloud-node

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

New issue
Copy link
New issue
Copy link
Closed
Closed
storage: bucket.makePublic(fd, cb) & bucket.makePrivate(fd, cb)#162
Copy link
Assignees
ryanseys
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.
Milestone
Storage Stable

Description

@ryanseys
ryanseys
opened on Sep 1, 2014
Issue body actions

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

Activity

Next
  1. ryanseys
    changed the title [-]bucket.makePublic(fd, cb) & bucket.makePrivate(fd, cb) && object.[/-] [+]bucket.makePublic(fd, cb) & bucket.makePrivate(fd, cb)[/+] on Sep 1, 2014
  2. ryanseys
    added
    enhancement
    on Sep 1, 2014
  3. ryanseys
    changed the title [-]bucket.makePublic(fd, cb) & bucket.makePrivate(fd, cb)[/-] [+]storage: bucket.makePublic(fd, cb) & bucket.makePrivate(fd, cb)[/+] on Sep 2, 2014
  4. rakyll commented on Sep 2, 2014

    @rakyll
    rakyll
    on Sep 2, 2014
    Contributor
    More actions

    This should go into the write operation as previously suggested. ACL changes should succeed and fail with metadata/contents changes atomically.

    Btw, in your use case, you can set bucket's default ACL to be publicly readable. https://developers.google.com/storage/docs/json_api/v1/defaultObjectAccessControls/insert (Developers Console has a screen to manage bucket ACL as well.) You dont have to set ACL for each individual file.

    Most of the time, people create a separate bucket for public blobs.

  5. ryanseys commented on Sep 3, 2014

    @ryanseys
    ryanseys
    on Sep 3, 2014
    ContributorAuthor
    More actions

    Oh okay, I'll close this.

  6. ryanseys
    closed this as completedon Sep 3, 2014
  7. jgeewax
    added
    api: storageIssues related to the Cloud Storage API.
    and removed
    api: storageIssues related to the Cloud Storage API.
    on Feb 2, 2015
  8. jgeewax
    added this to the Storage Stable milestone on Feb 2, 2015
  9. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  10. JustinBeckwith
    assigned
    ryanseys
    on Feb 1, 2021
  11. chingor13
    added a commit that references this issue on Aug 22, 2022

    build: switch to GitHub magic proxy (#162)

    84ff681
  12. chingor13
    added a commit that references this issue on Sep 12, 2022

    fix: allow passing gax instance to client constructor (#162)

    9ed6cb6
  13. 63 remaining items

  14. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    Improved error messages for custom types (#162)

    bb715bc

    Add `directory` option to `getFiles()` (#162)

    54af849
  15. GautamSharda
    added 2 commits that reference this issue on Feb 25, 2026

    chore: update gapic-generator-typescript to v1.3.2 (#162)

    3eef6cd

    test: fix system tests (#162)

    b03855a
  16. sofisl
    added a commit that references this issue on Feb 26, 2026

    Fix region tags in spanner ref docs. (#162)

    ca1a88b
  17. codyoss
    added a commit that references this issue on Mar 5, 2026

    build: update linkinator config (#162)

    dc6a6bc
  18. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    chore(deps): lock file maintenance (#162)

    1bda648
  19. sofisl
    added a commit that references this issue on Mar 5, 2026

    build: use codecov's action, now that it's authless (#162)

    c624eef
  20. codyoss
    added a commit that references this issue on Mar 12, 2026

    chore: migrate to owl bot (#162)

    f6bc41f
  21. GautamSharda
    added a commit that references this issue on Mar 12, 2026

    chore: upgrade to latest of all dependencies (#162)

    bf7fee2
  22. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    Add `directory` option to `getFiles()` (googleapis#162)

    6988d51
  23. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    Convert common js patterns to use node-v6 capabilities. (#162)

    eb140a3

    Convert common js patterns to use node-v6 capabilities. (#162)

    a4e58b1
  24. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    Convert common js patterns to use node-v6 capabilities. (#162)

    361afce
  25. thiyaguk09
    added a commit that references this issue on May 5, 2026

    Convert common js patterns to use node-v6 capabilities. (googleapis#162)

    a6074f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ryanseys
    ryanseys

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

    Milestone

    • Storage Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.