We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cf1646 + 2a070aa commit c348096Copy full SHA for c348096
bundle/Form/FieldTypeHandler/EnhancedFile.php
@@ -71,8 +71,8 @@ protected function buildFieldForm(
71
if (false !== $maxFileSize || !empty($allowedExtensions)) {
72
$constraints = array();
73
74
- if (false !== $maxFileSize) {
75
- $constraints['maxSize'] = $maxFileSize;
+ if (false !== $maxFileSize && !empty($maxFileSize)) {
+ $constraints['maxSize'] = strval($maxFileSize) . "M";
76
}
77
78
if (!empty($allowedExtensions)) {
0 commit comments