Tighten ACP forum actions and avatar handling
This commit is contained in:
@@ -16,7 +16,13 @@ class UploadController extends Controller
|
||||
}
|
||||
|
||||
$data = $request->validate([
|
||||
'file' => ['required', 'image', 'mimes:jpg,jpeg,png,gif,webp', 'max:2048'],
|
||||
'file' => [
|
||||
'required',
|
||||
'image',
|
||||
'mimes:jpg,jpeg,png,gif,webp',
|
||||
'max:2048',
|
||||
'dimensions:max_width=150,max_height=150',
|
||||
],
|
||||
]);
|
||||
|
||||
if ($user->avatar_path) {
|
||||
|
||||
Reference in New Issue
Block a user