Updating validation rule to be max file size

parent f094416f
......@@ -17,7 +17,7 @@ class UploadDropzoneMediaRequest extends FormRequest
'required',
new MaxFolderSizeRule(),
$extensions,
"size:$maxFileSize",
"max:$maxFileSize",
],
];
}
......@@ -27,7 +27,7 @@ class UploadDropzoneMediaRequest extends FormRequest
$size = $this->getMaxFileSize();
return [
'file.size' => trans('media::media.file too large', ['size' => $size])
'file.max' => trans('media::media.file too large', ['size' => $size])
];
}
......
......@@ -17,7 +17,7 @@ class UploadMediaRequest extends FormRequest
'required',
new MaxFolderSizeRule(),
$extensions,
"size:$maxFileSize",
"max:$maxFileSize",
],
];
}
......@@ -27,7 +27,7 @@ class UploadMediaRequest extends FormRequest
$size = $this->getMaxFileSize();
return [
'file.size' => trans('media::media.file too large', ['size' => $size])
'file.max' => trans('media::media.file too large', ['size' => $size])
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment