Aliyun-oss-storage
Aliyun-oss-storage copied to clipboard
isCName设置为true后上传错误
'driver' => 'oss',
'access_id' => 'xxx',
'access_key' => 'xxx',
'bucket' => xxx',
'endpoint' => 'oss-cn-hangzhou.aliyuncs.com', // OSS 外网节点或自定义外部域名
'endpoint_internal' => 'oss-cn-hangzhou-internal.aliyuncs.com', // v2.0.4 新增配置属性,如果为空,则默认使用 endpoint 配置(由于内网上传有点小问题未解决,请大家暂时不要使用内网节点上传,正在与阿里技术沟通中)
'cdnDomain' => 'p.cdn.xxx.com', // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url,如果cdnDomain未设置,则使用endpoint来生成url,否则使用cdn
'ssl' => false, // true to use 'https://' and false to use 'http://'. default is false,
'isCName' => true, // 是否使用自定义域名,true: 则Storage.url()会使用自定义的cdn或域名生成文件url, false: 则使用外部节点生成url
'debug' => false
也遇到这个问题了
@jacobcyl 这个 包作者还维护吗?
修复了getUrl文件不存在报错的问题,和使用自定义域名(cdn)上传报错的问题: https://github.com/ziyeziye/Aliyun-oss-storage