UPDATE: Fixed it using the code from this PR, I've asked to assist in getting the PR merged, but for now my issues is sorted with a fork.
Trying to upload to Google cloud storage via the following package:
https://github.com/Superbalist/flysystem-google-cloud-storage#usage
My integration works fine with fine grained access control, but I need to use uniform access, and any time i set it to be uniform instead of fine grain, i'm no longer able to upload to the bucket, and get the following error:
{
"error": {
"code": 400,
"message": "Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access.",
"errors": [
{
"message": "Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access.",
"domain": "global",
"reason": "invalid"
}
]
}
}
Any ideas what i might be missing to get this working?
This looks an like known issue of the package Superbalist/laravel-google-cloud-storage
The only way to work with this package is using fine grained access control, or by using directly the official google cloud storage PHP library.