From ae208be1d0b95f95e7eb8b9dac53ee2de4808654 Mon Sep 17 00:00:00 2001 From: zhao Date: Wed, 18 Mar 2020 21:34:13 +0800 Subject: [PATCH] up userimg Size --- app/index/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index/controller/User.php b/app/index/controller/User.php index b2f1282..c6c119e 100644 --- a/app/index/controller/User.php +++ b/app/index/controller/User.php @@ -94,7 +94,7 @@ class User extends BaseController { $file = request()->file('file'); try { - validate(['file'=>'filesize:204800|fileExt:jpg,png,gif']) + validate(['file'=>'fileSize:204800|fileExt:jpg,png,gif']) ->check(['file'=>$file]); $savename = \think\facade\Filesystem::disk('public')->putFile('head_pic',$file); } catch (think\exception\ValidateException $e) {