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) {