当前位置:网站首页>thinkphp6.0的第三方扩展包,支持上传阿里云,七牛云
thinkphp6.0的第三方扩展包,支持上传阿里云,七牛云
2022-06-26 09:33:00 【忠忠】
环境要求
1.php >= 7.1
2. thinkphp >= 6.0.0
支持
阿里云
七牛云
腾讯云
安装
第一步:
$ composer require thans/thinkphp-filesystem-cloud
第二步: 在config/filesystem.php中添加配置
'aliyun' => [
'type' => 'aliyun',
'accessId' => '******',
'accessSecret' => '******',
'bucket' => 'bucket',
'endpoint' => 'oss-cn-hongkong.aliyuncs.com',
'url' => 'http://oss-cn-hongkong.aliyuncs.com',//不要斜杠结尾,此处为URL地址域名。
],
'qiniu' => [
'type' => 'qiniu',
'accessKey' => '******',
'secretKey' => '******',
'bucket' => 'bucket',
'url' => '',//不要斜杠结尾,此处为URL地址域名。
],
'qcloud' => [
'type' => 'qcloud',
'region' => '***', //bucket 所属区域 英文
'appId' => '***', // 域名中数字部分
'secretId' => '***',
'secretKey' => '***',
'bucket' => '***',
'timeout' => 60,
'connect_timeout' => 60,
'cdn' => '您的 CDN 域名',
'scheme' => 'https',
'read_from_cdn' => false,
]第三步: 开始使用。 请参考thinkphp文档 文档地址:上传 · ThinkPHP6.0完全开发手册 · 看云
注意:不支持tp5,tp5没有filesystem
边栏推荐
- Regular expression learning
- Optimization of power assisted performance of QPM suspended window
- Nacos registry structure and the principle of massive service registration and concurrent read-write source code analysis
- Merrill Lynch data tempoai is new!
- 全面解读!Golang中泛型的使用
- "One week's work on Analog Electronics" - diodes
- install opencv-contrib-dev to use aruco code
- Js--- get the data with the same key value in the object array to get a new array
- 《一周搞定模电》—功率放大器
- VI summary of common commands
猜你喜欢

install realsense2: The following packages have unmet dependencies: libgtk-3-dev

Yolov5 results Txt visualization

"One week's data collection" - logic gate

【CVPR 2021】Unsupervised Multi-Source Domain Adaptation for Person Re-Identification (UMSDA)

3大问题!Redis缓存异常及处理方案总结

The most complete and simple nanny tutorial: deep learning environment configuration anaconda+pychart+cuda+cudnn+tensorflow+pytorch

Merrill Lynch data technology expert team | application of recommendation of relevant contents in group system data retrieval

The first techo day Tencent technology open day, 628

Principle and application of single chip microcomputer -- Overview
Optimization of power assisted performance of QPM suspended window
随机推荐
Bbox format conversion (detectron2 function library)
The first techo day Tencent technology open day, 628
Record a time when the server was taken to mine
"One week to solve the model electricity" - negative feedback
【CVPR 2021】Joint Generative and Contrastive Learning for Unsupervised Person Re-identification
全面解读!Golang中泛型的使用
《單片機原理及應用》——概述
Collection object replication
2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程
"One week's work on Analog Electronics" - optocoupler and other components
Badge series 8: generate a personalized Badge
Master data management of scientific research institutes? Suppliers or customers? I am a correspondent
QPM performance monitoring components - General
Detectron2 draw confusion matrix, PR curve and confidence curve
Badge series 7: use of codacy
thinkphp5使用composer安装插件提示php版本过高
Learning to Generalize Unseen Domains via Memory-based Multi-Source Meta-Learning for Person Re-ID
《一周搞定模电》—负反馈
How does flutter transfer parameters to the next page when switching pages?
"One week's data collection" - logic gate