diff --git a/s3/public.go b/s3/public.go index c08f382b..78a4a917 100644 --- a/s3/public.go +++ b/s3/public.go @@ -66,10 +66,11 @@ func NewPublishedStorageRaw( plusWorkaround, disabledMultiDel, forceVirtualHostedStyle bool, config *aws.Config, ) (*PublishedStorage, error) { - var acl types.ObjectCannedACL - if defaultACL == "" { + if defaultACL == "" || defaultACL == "private" { acl = types.ObjectCannedACLPrivate + } else if defaultACL == "public-read" { + acl = types.ObjectCannedACLPublicRead } else if defaultACL == "none" { acl = "" }