mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
file upload max size 50mb
This commit is contained in:
1 parent
a805ca94e7
commit
55ceb0573a
2 files changed
+12
-4
No files matched your search
@@ -57,7 +57,9 @@ class MasterTaskController extends Controller
|
||||
'data.deadline' => 'required',
|
||||
'data.project_id' => 'required',
|
||||
'data.employees' => 'required',
|
||||
]);
|
||||
'data.file' => 'max:51200',
|
||||
],
|
||||
['data.file.max' => 'File size must be less than 50MB']);
|
||||
|
||||
if($validator->fails()){
|
||||
return response()->json($validator->errors(), 400);
|
||||
@@ -100,7 +102,9 @@ class MasterTaskController extends Controller
|
||||
'data.duration' => 'required',
|
||||
'data.deadline' => 'required',
|
||||
'data.project_id' => 'required',
|
||||
]);
|
||||
'data.file' => 'max:51200',
|
||||
],
|
||||
['data.file.max' => 'File size must be less than 50MB']);
|
||||
|
||||
if ($validator->fails()){
|
||||
return response()->json($validator->errors(), 400);
|
||||
|
||||
Reference in new issue
Block a user