Aliyun-oss-storage icon indicating copy to clipboard operation
Aliyun-oss-storage copied to clipboard

isCName设置为true后上传错误

Open SmallRuralDog opened this issue 7 years ago • 3 comments

            '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

SmallRuralDog avatar Dec 21 '17 02:12 SmallRuralDog

也遇到这个问题了

Tai7sy avatar Mar 08 '18 02:03 Tai7sy

@jacobcyl 这个 包作者还维护吗?

iiDestiny avatar Jul 03 '18 01:07 iiDestiny

修复了getUrl文件不存在报错的问题,和使用自定义域名(cdn)上传报错的问题: https://github.com/ziyeziye/Aliyun-oss-storage

ziyeziye avatar Dec 23 '20 04:12 ziyeziye