From 6d151212180e0e0d27e1b659aca5a139dcd13347 Mon Sep 17 00:00:00 2001 From: mindaugasvcs Date: Tue, 23 Jan 2024 19:07:28 +0200 Subject: [PATCH] Fix option filenameMaxLength to the File constraint (Image) --- src/Symfony/Component/Validator/Constraints/Image.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/Validator/Constraints/Image.php b/src/Symfony/Component/Validator/Constraints/Image.php index 7710fbd1c72f7..43590f4f2425c 100644 --- a/src/Symfony/Component/Validator/Constraints/Image.php +++ b/src/Symfony/Component/Validator/Constraints/Image.php @@ -43,6 +43,7 @@ class Image extends File self::EMPTY_ERROR => 'EMPTY_ERROR', self::TOO_LARGE_ERROR => 'TOO_LARGE_ERROR', self::INVALID_MIME_TYPE_ERROR => 'INVALID_MIME_TYPE_ERROR', + self::FILENAME_TOO_LONG => 'FILENAME_TOO_LONG', self::SIZE_NOT_DETECTED_ERROR => 'SIZE_NOT_DETECTED_ERROR', self::TOO_WIDE_ERROR => 'TOO_WIDE_ERROR', self::TOO_NARROW_ERROR => 'TOO_NARROW_ERROR',