You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Adding a collection of media files (images or files) to a node/document is quite easy. The persistence works, but trying to visualize them in a collection form type with the ImageType or FileType as entity fails, as the collection is created with the nodes names as keys. Those keys, which are file names in case of medea files, fail on form name validation. with an exception like:
Symfony\Component\Form\Exception\InvalidArgumentException: The name "IMG_4721.JPG" contains illegal characters. Names should start with a letter, digit or underscore and only contain letters, digits, numbers, underscores ("_"), hyphens ("-") andcolons (":").
at n/a
in /var/www/prberghoff/New/vendor/symfony/symfony/src/Symfony/Component/Form/FormConfigBuilder.php line 865
at Symfony\Component\Form\FormConfigBuilder::validateName('IMG_4721.JPG')
in /var/www/prberghoff/New/vendor/symfony/symfony/src/Symfony/Component/Form/FormConfigBuilder.php line 193
But it would be nice to edit and persist files in a arbitrary collection without enclosing them into a document with nice names.
Adding a collection of media files (images or files) to a node/document is quite easy. The persistence works, but trying to visualize them in a collection form type with the
ImageTypeorFileTypeas entity fails, as the collection is created with the nodes names as keys. Those keys, which are file names in case of medea files, fail on form name validation. with an exception like:But it would be nice to edit and persist files in a arbitrary collection without enclosing them into a document with nice names.