Updating validation rule to be max file size

parent f094416f
...@@ -17,7 +17,7 @@ class UploadDropzoneMediaRequest extends FormRequest ...@@ -17,7 +17,7 @@ class UploadDropzoneMediaRequest extends FormRequest
'required', 'required',
new MaxFolderSizeRule(), new MaxFolderSizeRule(),
$extensions, $extensions,
"size:$maxFileSize", "max:$maxFileSize",
], ],
]; ];
} }
...@@ -27,7 +27,7 @@ class UploadDropzoneMediaRequest extends FormRequest ...@@ -27,7 +27,7 @@ class UploadDropzoneMediaRequest extends FormRequest
$size = $this->getMaxFileSize(); $size = $this->getMaxFileSize();
return [ 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 ...@@ -17,7 +17,7 @@ class UploadMediaRequest extends FormRequest
'required', 'required',
new MaxFolderSizeRule(), new MaxFolderSizeRule(),
$extensions, $extensions,
"size:$maxFileSize", "max:$maxFileSize",
], ],
]; ];
} }
...@@ -27,7 +27,7 @@ class UploadMediaRequest extends FormRequest ...@@ -27,7 +27,7 @@ class UploadMediaRequest extends FormRequest
$size = $this->getMaxFileSize(); $size = $this->getMaxFileSize();
return [ 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