From 50410d640a6b177c2bf7ac5c035a925063d405dd Mon Sep 17 00:00:00 2001 From: yanwenwu Date: Sat, 1 Feb 2020 16:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8A=E4=BC=A0=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/catch.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/catch.php b/config/catch.php index cdbb224..31c2fd6 100644 --- a/config/catch.php +++ b/config/catch.php @@ -55,4 +55,13 @@ return [ 'validates' => [ \catcher\validates\Sometimes::class, ], + /** + * 上传设置 + * + */ + 'upload' => [ + 'image' => 'filesize:' . 1024 * 5 . '|fileExt:jpg,png,gif,jpeg', + 'file' => 'filesize:' . 1024 * 10 . '|fileExt:txt,pdf,xlsx,xls,html' + ] + ];