andrewrk / node-s3-client

high level amazon s3 client for node.js
MIT License
1k stars 305 forks source link

Setting permissions #102

Closed fmmsilva closed 9 years ago

fmmsilva commented 9 years ago

How to set public access permission to files uploaded to the bucket?

faceleg commented 9 years ago

I think you'll find the answer in this portion: https://github.com/andrewrk/node-s3-client#clientuploadfileparams

That links to http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property, where I see the line ACL: 'private | public-read | public-read-write | authenticated-read | bucket-owner-read | bucket-owner-full-control',

vmdao commented 7 years ago

Thank @faceleg 👍 And you can read sollution add "Bucket Policy" in S3 flow https://github.com/aws/aws-sdk-js/issues/256#issuecomment-229301444