update: change validation for file size material

This commit is contained in:
abiyasa05 2025-06-10 21:35:25 +07:00
parent 73f2809b86
commit 6bfabd804e

View File

@ -40,7 +40,7 @@ public function store(Request $request)
$request->validate([
'title' => 'required|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;