Try to fix 403 on web hosting when deleting icon

This commit is contained in:
Bubka 2020-01-29 22:24:28 +01:00
parent ad15381fc9
commit eb28b59d76

View File

@ -23,7 +23,7 @@ public function upload(Request $request)
'icon' => 'required|image',
]);
$path = $request->file('icon')->storePublicly('public/icons');
$path = $request->file('icon')->store('public/icons');
return response()->json(pathinfo($path)['basename'], 201);
}