PHP SDK调用upload_file_by_file()上传文件时,
若指定oss-cn-beijing.aliyuncs-internal.com会导致上传不成功,
可改成oss-cn-beijing.aliyuncs.com就没有问题,请问怎么解决?谢谢。
Array (
[0] => ResponseCore Object (
[header] => Array (
[oss-request-url] => http://mybucket.oss-cn-beijing.aliyuncs-internal.com/lz/tu.png
[oss-redirects] => 0
[oss-stringtosign] => PUT image/png Sun, 22 Nov 2015 09:05:20 GMT x-oss-server-side-encryption:AES256 /mybucket/lz/tu.png
[oss-requestheaders] => Array (
[Cache-Control] => no-cache
[Content-Disposition] => attachment;filename=oss_download.gz
[Content-Encoding] => utf-8
[Content-Language] => zh-CN
[Content-Type] => image/png
[Date] => Sun, 22 Nov 2015 09:05:20 GMT
[Expires] => Fri, 28 Feb 2016 05:38:42 GMT
[Host] => mybucket.oss-cn-beijing.aliyuncs-internal.com
[x-oss-server-side-encryption] => AES256
[Authorization] => OSS 此处略:若干字
)
)
[body] => [status] =>
)
)
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。