Answer the question
In order to leave comments, you need to log in
How to use ElfinderType in Symfony to select an image file?
There is a form, it has a field with an image, where ElfinderType is used.
->add('image', ElFinderType::class, [
'attr' => ['class' => 'form-control', 'readonly' => 'readonly'],
])
Answer the question
In order to leave comments, you need to log in
Issue resolved. You need to create a second instance:
fm_elfinder:
fileinput:
editor: form
->add('image', ElFinderType::class, [
'attr' => ['class' => 'form-control', 'readonly' => 'readonly'],
'instance' => 'fileinput'
])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question