Report this

What is the reason for this report?

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

Posted on September 7, 2018

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.