From e6796667c254fed4e5267910f3b2d6bc543299e8 Mon Sep 17 00:00:00 2001 From: Anyon Date: Sat, 21 Dec 2019 15:15:07 +0800 Subject: [PATCH] Update Upload.php --- app/admin/controller/api/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/controller/api/Upload.php b/app/admin/controller/api/Upload.php index d949f236a..45121fd67 100644 --- a/app/admin/controller/api/Upload.php +++ b/app/admin/controller/api/Upload.php @@ -134,7 +134,7 @@ class Upload extends Controller { $this->uptype = strtolower(input('uptype', '')); if (!in_array($this->uptype, ['local', 'qiniu', 'alioss'])) { - $this->uptype = sysconf('storage.type'); + $this->uptype = strtolower(sysconf('storage.type')); } return strtolower($this->uptype); }