在PHP中使用stream\u context\u create loss权限时出现ACL错误

在PHP中使用stream\u context\u create loss权限时出现ACL错误,php,google-app-engine,acl,google-cloud-storage,Php,Google App Engine,Acl,Google Cloud Storage,你好 我想知道你是否能帮我解决这个小问题???我遇到过。无论我做什么,我都不能公开文件“coolguy”。webconsole中没有复选框 为了创建文件,我使用了以下代码,但我认为acl有问题 $options = [ 'gs' => [ 'Content-Type' => $type, 'acl'=> 'public-read' ], ]; $ctx = stream_context_create($options); copy($oldpath, $new_full_

你好

我想知道你是否能帮我解决这个小问题???我遇到过。无论我做什么,我都不能公开文件“coolguy”。webconsole中没有复选框

为了创建文件,我使用了以下代码,但我认为acl有问题

$options = [
'gs' => [
'Content-Type' => $type,
'acl'=> 'public-read'

 ],
];
$ctx = stream_context_create($options);

copy($oldpath, $new_full_path , $ctx);

我在这里使用指南:

您可以在中使用“存储浏览器”来验证/更改权限。存储浏览器不显示复选框,权限也被禁用。但是,通过直接转到文件的端点将字体输出设置为public。