Task 2 - file size validation

This commit is contained in:
PovilasKorop
2021-12-05 13:44:24 +02:00
parent 52d876c88f
commit 669b1de915
3 changed files with 29 additions and 0 deletions
@@ -9,6 +9,10 @@ class ProjectController extends Controller
{
public function store(Request $request)
{
$request->validate([
// TASK: Write the validation rule so "logo" file would be MAX 1 megabyte
]);
// TASK: change the below line so that $filename would contain only filename
// The same filename as the original uploaded file
$filename = '???';