Unable to set file access to private on file Upload on spaces

September 7, 2018 596 views
API Ubuntu 18.04

Hi

We are using the Amazon AWS sdk for php and we are creating the “PutObject"as follows

$command = $this->client->getCommand(‘PutObject’, [
'Bucket’ => $this->bucket,
'Key’ => $this->key,
'Body’ => $this->body,
'ACL’ => $this->acl,
]

I have checked that this is the structure which is correct as per this link PutObejct Syntax

But when the object is uploaded to digitalocean spaces,the access specifier is still public which should be private as we are specifying the value "private” in the 'ACL’ key.

Any leads as to why the expected behaviour is not working is highly appreciated.

Link for reference:ACL Overview

Be the first one to answer this question.