php - laravel使用阿里云oss上传提示无法连接问题

查看:884
本文介绍了php - laravel使用阿里云oss上传提示无法连接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

我使用的是
johnlui
阿里云上传插件
Github 地址:https://github.com/johnlui/Al...

上传提交后报错
ClientException in HttpServiceClient.php line 93:
[curl] 7: Failed to connect to chengzige.oss-cn-shanghai-internal.aliyuncs.com port 80: Timed out [url] http://chengzige.oss-cn-shang...

解决方案

额,今天刚做了阿里云的OSS上传。
https://help.aliyun.com/docum...

SDK请使用 http:// 或 https:// + Endpoint 作为初始化的参数。以 华东 2 的Endpoint为例子,为http://oss-cn-shanghai.aliyuncs.com 或者 https://oss-cn-shanghai.aliyuncs.com,而不是用三级域名作为初始化参数(即不使用http://bucket.oss-cn-shanghai.aliyuncs.com作为初始化参数)

这篇关于php - laravel使用阿里云oss上传提示无法连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆