We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24b3934 commit 7d4855dCopy full SHA for 7d4855d
bundle/Form/FieldTypeHandler/EnhancedFile.php
@@ -72,7 +72,7 @@ protected function buildFieldForm(
72
$constraints = array();
73
74
if (false !== $maxFileSize) {
75
- $constraints['maxSize'] = $maxFileSize;
+ $constraints['maxSize'] = strval($maxFileSize) . "M";
76
}
77
78
if (!empty($allowedExtensions)) {
0 commit comments