This commit is contained in:
mkm 2023-12-29 15:18:26 +08:00
parent 9fa6ade6be
commit 7ae8d10619
2 changed files with 2 additions and 3 deletions

View File

@ -216,7 +216,6 @@ class Config extends BaseController
{
$file = $this->request->file($field);
if (!$file) return app('json')->fail('请上传附件');
//ico 图标处理
if ($file->getOriginalExtension() == 'ico') {
$file->move('public','favicon.ico');

View File

@ -19,9 +19,9 @@ return [
//上传文件大小
'filesize' => 52428800,
//上传文件后缀类型
'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key', 'xlsx', 'xls', 'ico', 'apk', 'ipa','wgt'],
'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key', 'xlsx', 'xls', 'ico', 'apk', 'ipa','wgt','zip'],
//上传文件类型
'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg', 'image/vnd.microsoft.icon','application/widget',],
'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg', 'image/vnd.microsoft.icon','application/widget','application/zip'],
//驱动模式
'stores' => [
//本地上传配置