Skip to content

Commit 2a070aa

Browse files
committed
can be NULL
1 parent 7d4855d commit 2a070aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundle/Form/FieldTypeHandler/EnhancedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function buildFieldForm(
7171
if (false !== $maxFileSize || !empty($allowedExtensions)) {
7272
$constraints = array();
7373

74-
if (false !== $maxFileSize) {
74+
if (false !== $maxFileSize && !empty($maxFileSize)) {
7575
$constraints['maxSize'] = strval($maxFileSize) . "M";
7676
}
7777

0 commit comments

Comments
 (0)