腾讯云对象存储错误:This XML file does not appear to have any style information associated with it. The docume
腾讯云上传的图片返回了正确的代码:
GuzzleHttp\Command\Result Object
(
[ETag] => "1eeec19af2564ccab82ee1622e54a34f"
[RequestId] => NWVjZTAzYTlfM2RhZDUzNjRfNTZjY2VfOTNkNmNm
[Key] => a1.jpg
[Bucket] => hml-1258399702
[Location] => hml-1258399702.cos.ap-shenzhen-fsi.myqcloud.com/a1.jpg
)
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
当我们访问location的时候打开图片是这样的:
报错:This XML file does not appear to have any style information associated with it. The docume
出现这个问题的原因是该存储桶内的图片是私有访问,需要改权限。进入腾讯云后台https://console.cloud.tencent.com/cos5/bucket#
选择其中的一个存储桶,点击设置:-》权限管理-》选择公有读
保存设置后再此访问,访问成功。
给同事创建了一个保存图片的cos桶,图片上传成功,但是访问下载出现问题,看完后解决。