Dynamic path upload for Elfinder under symfony 6

70 Views Asked by At

I'm using Symfony 6.3 and elfinder for image uploads. I have multiple users, and I want to configure an upload directory per user. The upload directory is generated via a service.

I tried putting the following configuration in the fm_elfinder.yaml file:

path: "@=service('App\\Service\\UploadPathService').getUploadPath()"

But it's not working.

I have the error "@=service('App\Service\UploadPathService').getUploadPath()" not exist

How can I resolve this?

0

There are 0 best solutions below