How to use VichUploaderBundle in CrudController’s configureFields

Images aren’t saving with settings below

public function configureFields(string $pageName): iterable
    {
        return [
            ImageField::new('imageFile')->setBasePath('%app.path.product_images%'),
        ];
    }

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *