Skip to content

Commit 7d4855d

Browse files
committed
maxSize uses value in MB
1 parent 24b3934 commit 7d4855d

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
@@ -72,7 +72,7 @@ protected function buildFieldForm(
7272
$constraints = array();
7373

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

7878
if (!empty($allowedExtensions)) {

0 commit comments

Comments
 (0)