mirror of
https://github.com/10h30/Test-Laravel-File-Upload.git
synced 2026-06-05 15:07:47 +09:00
Task 2 - file size validation
This commit is contained in:
@@ -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 = '???';
|
||||
|
||||
Reference in New Issue
Block a user