Closed johan-Rm closed 5 years ago
Hi, MediaType
requires a 'conf'
option (a conf that needs to be created in yaml through this bundle).
e.g
$builder->add('image', MediaType::class, [
'conf' => 'default'
])
and in a yaml file something like:
artgris_file_manager:
web_dir: public
conf:
default:
dir: "../public/uploads/"
type: image
(btw, you can use ``` to format multiple lines of code)
Thanks a lot
Hi, I use SF4 and easyadmin, I override AdminController to add the image field but I see an error
Someone can help me ?
When i make a dump in Artgris\Bundle\MediaBundle\Form\Type\MediaType.php i find conf var => false
thanks