更新:使用此 PR 中的代码修复了它,我已要求协助合并 PR,但目前我的问题已通过叉子进行排序。
尝试通过以下包上传到Google云存储:
https://github.com/Superbalist/flysystem-google-cloud-storage#usage https://github.com/Superbalist/flysystem-google-cloud-storage#usage
我的集成可以很好地处理细粒度访问控制,但我需要使用统一访问,并且任何时候我将其设置为统一而不是细粒度,我都无法再上传到存储桶,并收到以下错误:
{
"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"
}
]
}
}
为了让这个工作正常进行,我可能会缺少什么想法?
这看起来像已知问题 https://github.com/Superbalist/laravel-google-cloud-storage/issues/80#issuecomment-616557477Superbalist/laravel-google-cloud-storage 包的
使用此包的唯一方法是使用细粒度访问控制,或者直接使用官方谷歌云存储PHP库 https://cloud.google.com/storage/docs/reference/libraries.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)