public function getBlockPrefix(): string
{ return 'file';
} private function getFileUploadError(int
$errorCode): FileUploadError
{ $messageParameters =
[];
if (\UPLOAD_ERR_INI_SIZE ===
$errorCode) { [$limitAsString,
$suffix] =
$this->
factorizeSizes(0, self::
getMaxFilesize());
$messageTemplate = 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.';
$messageParameters =
[ '{{ limit }}' =>
$limitAsString,
'{{ suffix }}' =>
$suffix,
];
} elseif (\UPLOAD_ERR_FORM_SIZE ===
$errorCode) { $messageTemplate = 'The file is too large.';
} else { $messageTemplate = 'The file could not be uploaded.';
}