ThinkPHP 阿里云分片上传
(1)composer安装阿里云OSS SDKcomposer require aliyuncs/oss-sdk-php(2)上传逻辑代码// 接收文件数据 $file = request()->file('img');// 取出文件名截取后缀 $name = $file->getOriginalName(); $suffix = strchr($name,'.');// 阿里云配置