上传文件配置
config/filesystems.php
```php
.
.
.
// 配置的允许大小不能超过 PHP.ini 限制. 默认PHP POST 请求允许最大8MB,File Upload 最大 2MB
'uploader' => [
'folder' => ['avatar', 'article', 'blog', 'page', 'website', 'slide', 'link', 'video', 'annex', 'voice', 'navigation'],
// 图片
'image' => [
'size_limit' => 5242880, // 单位:字节,默认:5MB
'allowed_ext' => ["png", "jpg", "gif", 'jpeg', 'bmp'],
],
// 附件
'annex' => [
'size_limit' => 204857600000, // 单位:字节,默认:5MB (5242880 B) // 104857600
'allowed_ext' => ['zip','rar','7z','gz'],
],
// 文件
'file' => [
'size_limit' => 5242880, // 单位:字节,默认:5MB
'allowed_ext' => ['pdf','doc','docx','xls','xlsx','ppt','pptx'],
],
// 音频
'voice' => [
'size_limit' => 5242880, // 单位:字节,默认:5MB
'allowed_ext' => ['mp3','wmv'],
],
// 视频
'video' => [
'size_limit' => 5242880, // 单位:字节,默认:5MB
'allowed_ext' => ['mp4'],
],
// Ueditor 配置
'ueditor' => [
"imageActionName" => "uploadimage",
"imageFieldName" => "upload_file",
"imageMaxSize" => 5242880,
"imageAllowFiles" => [".png", ".jpg", ".jpeg", ".gif", ".bmp"],
"imageCompressEnable" => true,
"imageCompressBorder" => 1600,
"imageInsertAlign" => "none",
"imageUrlPrefix" => "",
"imagePathFormat" => "",
"imageManagerUrlPrefix" => "",
"imageManagerActionName" => "listimage",
"imageManagerListSize" => 20,
"fileManagerListSize" => 20,
"snapscreenActionName" => "uploadimage",
"snapscreenInsertAlign" => "none",
"snapscreenUrlPrefix" => "",
"snapscreenPathFormat" => "",
"videoActionName" => "uploadvideo",
"videoFieldName" => "upload_file",
"videoMaxSize" => 5242880,
"videoAllowFiles" => [".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"],
"videoUrlPrefix" => "",
"videoPathFormat" => "",
"catcherLocalDomain" => ["127.0.0.1", "localhost", "img.baidu.com"],
"catcherActionName" => "catchimage",
"catcherFieldName" => "source",
"catcherUrlPrefix" => "",
"catcherMaxSize" => 2048000,
"catcherAllowFiles" => [".png", ".jpg", ".jpeg", ".gif", ".bmp"],
],
],
.
.
.
```