up userimg Size

This commit is contained in:
zhao 2020-03-18 21:34:13 +08:00
parent e8e5da04b0
commit ae208be1d0

View File

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