1234567891011121314151617181920212223242526 |
- <?php
- // +----------------------------------------------------------------------
- // | 上传配置
- // +----------------------------------------------------------------------
- return [
- //默认上传模式
- 'default' => 'local',
- //上传文件大小
- 'filesize' => 209715200,
- //上传文件后缀类型
- 'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4','zip', 'apk'],
- //上传文件类型
- 'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg','application/x-zip-compressed', 'application/octet-stream'],
- //驱动模式
- 'stores' => [
- //本地上传配置
- 'local' => [],
- //七牛云上传配置
- 'qiniu' => [],
- //oss上传配置
- 'oss' => [],
- //cos上传配置
- 'cos' => [],
- ]
- ];
|