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 7d4855d commit 2a070aaCopy full SHA for 2a070aa
bundle/Form/FieldTypeHandler/EnhancedFile.php
@@ -71,7 +71,7 @@ protected function buildFieldForm(
71
if (false !== $maxFileSize || !empty($allowedExtensions)) {
72
$constraints = array();
73
74
- if (false !== $maxFileSize) {
+ if (false !== $maxFileSize && !empty($maxFileSize)) {
75
$constraints['maxSize'] = strval($maxFileSize) . "M";
76
}
77
0 commit comments