src/EsetresAWS.php
public static function setObjectACL($key, $bucket, $acl = 'public-read')
    {
        $s3c = self::getS3C();
        if ($s3c->doesObjectExist($bucket, $key)) {
            $result = $s3c->putObjectAcl(array(
                'ACL' => $acl,
                'Bucket' => $bucket,
                'Key' => $key,
            ));
            if ($result) {
                return true;
            }
        }

        return false;
    }
public static function setObjectACL($key, $bucket, $acl = 'public-read')
    {
        $s3c = self::getS3C();
        if ($s3c->doesObjectExist($bucket, $key)) {
            $result = $s3c->putObjectAcl(array(
                'ACL' => $acl,
                'Bucket' => $bucket,
                'Key' => $key,
            ));
            if ($result) {
                return true;
            }
        }

        return false;
    }
public static function setObjectACL ( $ key , $ bucket , $ acl = 'public-read' ) { $ s3c = self :: getS3C ( ) ; if ( $ s3c -> doesObjectExist ( $ bucket , $ key ) ) { $ result = $ s3c -> putObjectAcl ( array ( 'ACL' => $ acl , 'Bucket' => $ bucket , 'Key' => $ key , ) ) ; if ( $ result ) { return true ; } } return false ; }
setObjectACL
Change the access level of an object on S3.

@param $key
@param $bucket
@param $acl (private|public-read|public-read-write|authenticated-read|bucket-owner-read|bucket-owner-full-control)
setObjectACL Change the access level of an object on S3 .