I'm using Symfony 2.3, FMElfinderBundle and FOSUserBundle. Both bundles works fine. My question relates to how to connect both bundles. When user register then I want to create directory for him and tell FMElfinderBundle to use that directory for that user. Another user will have another directory etc.
I know that FMElfinderBundle can have multiple roots in config.yml
fm_elfinder:
locale: %locale%
editor: ckeditor # other choices are tinymce or simple
showhidden: false # defaults to false
fullscreen: true # defaults true, applies to simple and ckeditor editors
connector:
debug: false # defaults to false
roots: # at least one root must be defined
uploads:
driver: LocalFileSystem
path: uploads
upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
upload_deny: ['all']
upload_max_size: 2M
How can I dynamically assign users to directories with all permissions? Any idea? What is the best solution for that? Maybe another file manager?