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 3cb6bcd commit 519a8ebCopy full SHA for 519a8eb
bundle/Form/FieldTypeHandler/EnhancedFile.php
@@ -69,10 +69,10 @@ protected function buildFieldForm(
69
$maxFileSize = $fieldDefinition->validatorConfiguration['FileSizeValidator']['maxFileSize'];
70
$allowedExtensions = $fieldDefinition->fieldSettings['allowedTypes'];
71
72
- if (false !== $maxFileSize || !empty($allowedExtensions)) {
+ if (null !== $maxFileSize || !empty($allowedExtensions)) {
73
$constraints = array();
74
75
- if (false !== $maxFileSize && !empty($maxFileSize)) {
+ if (null !== $maxFileSize && !empty($maxFileSize)) {
76
$constraints['maxSize'] = strval($maxFileSize) . "M";
77
}
78
0 commit comments