how up 2048 kb to my parameter?
maybe set settings for uploaded avatars users?
error if update avatar (size 500kb) error: filesize >2048 kb
avatar validator:
protected function raise($error, array $parameters = [])
{
$message = $this->translator->trans(
"validation.$error",
$parameters + [':attribute' => 'avatar']
);
throw new ValidationException(['avatar' => $message]);
}
protected function getMaxSize()
{
return 5120; //my parameter
}
protected function getAllowedTypes()
{
return ['jpg', 'png', 'bmp', 'gif'];
}