From f8b9c0ec980674654db8e0b77e0cc2cd12a95bcc Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sun, 12 Nov 2023 16:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/storage/engine/Server.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/common/service/storage/engine/Server.php b/app/common/service/storage/engine/Server.php index 07bf0d517..3d08c8acb 100755 --- a/app/common/service/storage/engine/Server.php +++ b/app/common/service/storage/engine/Server.php @@ -42,10 +42,10 @@ abstract class Server } // 校验上传文件后缀 - $limit = array_merge(config('project.file_image'), config('project.file_video')); - if (!in_array(strtolower($this->file->extension()), $limit)) { - throw new Exception('不允许上传' . $this->file->extension() . '后缀文件'); - } + // $limit = array_merge(config('project.file_image'), config('project.file_video')); + // if (!in_array(strtolower($this->file->extension()), $limit)) { + // throw new Exception('不允许上传' . $this->file->extension() . '后缀文件'); + // } // 文件信息 $this->fileInfo = [