minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

Set visibility/ACL public on an object #4919

Closed rfrerebe closed 6 months ago

rfrerebe commented 6 months ago

For the record, public visibility/ACL can be enabled with --attr

mc cp ./local_file s3/bucket/target_file --attr x-amz-acl=public-read

It's posted here for history as I haven't found it in the docs

--attr is added as an header to the request