mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
92a5716ab9
commit
5b326c8998
1 file changed
+2
-2
@@ -144,8 +144,8 @@ class SubTaskController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
// validacia na max 50MB size pre attachmenty. neslo dat do klasickeho laravel validation, tak je to separe
|
// validacia na max 50MB size pre attachmenty. neslo dat do klasickeho laravel validation, tak je to separe
|
||||||
if ($files = $request->file('data')['files']) {
|
if ($files = $request->file('data')) {
|
||||||
foreach ( $files as $file ) {
|
foreach ( $files['files'] as $file ) {
|
||||||
if ($file->getSize() > 52428800)
|
if ($file->getSize() > 52428800)
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'files' => 'File size must be less than 50MB',
|
'files' => 'File size must be less than 50MB',
|
||||||
|
|||||||
Reference in new issue
Block a user