hyperf-wgy / upload
hyperf upload
Installs: 463
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hyperf-wgy/upload
Requires
- php: >=8.0
- ext-json: *
- hyperf-plus/route: ^3.0
- hyperf/di: ^3.0
- hyperf/filesystem: ^3.0
- hyperf/flysystem-oss: ^1.0
- hyperf/http-server: ^3.0
README
-
安装 composer require hyperf-wgy/upload
-
发布 php bin/hyperf.php vendor:publish hyperf-wgy/upload
-
上传配置:upload.php 上传驱动 disk 目前仅支持 local or oss
-
文件配置:file.php 使用方式和hyperf上传模块一致
-
异常处理:在AppExceptionHandler中增加; 具体代码在hyperf文档异常模块
-
注意:local驱动 保证目录具有权限
-
使用:支持文件和图片上传
-
POST {{host}}/upload/file 参数:file
-
POST {{host}}/upload/image 参数:file


