Storage.put should set ACL public-read for public files
See original GitHub issuepublic files should be put with ACL of public-read
Inside the Storage.put
const params: any = {
Bucket: bucket,
Key: final_key,
Body: file,
ContentType: type
};
if (opt.level === "public") {
params["Acl"] = "public-read";
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:22
- Comments:23
Top Results From Across the Web
Configuring ACLs - Amazon Simple Storage Service
This section explains how to manage access permissions for S3 buckets and objects using access control lists (ACLs). You can add grants to...
Read more >Upload files to AWS S3 with public read ACL using AWS CLI ...
Upload files to AWS S3 with public read ACL using AWS CLI or Boto ... In some cases, you might need to store...
Read more >Object Storage default permission | Linode Questions
Is there a command I can set every file's Acl to public after upload them? ... all objects put into it in the...
Read more >Set ACL and Policy on S3 storage with aws cli - Gcore
Here is an example of setting a public acl (--acl public-read --) on a specific object (cat.jpg) ... aws s3api put-bucket-policy --policy file://policy.json ......
Read more >Access control lists (ACLs) | Cloud Storage
The maximum number of ACL entries you can create for a bucket or object is 100. ... When specifying ACLs in Cloud Storage,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Slightly modified to include the env, etc, but this works perfect for me. Thank you @XC3S
Thanks @hutch120 for the tip!
I solved it by adding a bucket policy: