To reproduce, invoke
$object->update([
'predefinedAcl' => 'publicRead'
]);
the following exception is being thrown:
Uncaught exception 'Google\Cloud\Exception\ConflictException' with message '{
"error": {
"errors": [
{
"domain": "global",
"reason": "conflict",
"message": "Cannot provide both a predefinedAcl and access controls."
}
works fine under bucket->upload() e.g.
$bucket->upload(
fopen($path, 'r'),[
'name' => 'file.txt',
'predefinedAcl' => 'publicRead'
]);
To reproduce, invoke
the following exception is being thrown:
works fine under bucket->upload() e.g.