update: change validation for file size material
This commit is contained in:
parent
73f2809b86
commit
6bfabd804e
|
|
@ -40,7 +40,7 @@ public function store(Request $request)
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'title' => 'required|string',
|
'title' => 'required|string',
|
||||||
'description' => 'nullable|string',
|
'description' => 'nullable|string',
|
||||||
'file_path' => 'nullable|file|mimes:pdf,doc,docx|max:2048'
|
'file_path' => 'nullable|file|mimes:pdf,doc,docx|max:1048576'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$filePath = null;
|
$filePath = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user