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' + ] + ];