Skip to content

How to dynamicly create folder ? #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chadyred opened this issue Nov 27, 2015 · 1 comment
Closed

How to dynamicly create folder ? #189

chadyred opened this issue Nov 27, 2015 · 1 comment

Comments

@chadyred
Copy link

Hello,

this is my conf

fm_elfinder:
    # assets_path: /web/assets V5
    instances:
        default:
            relative_path: false #permet d'utiliser l'URL en absolute
            locale: %locale% # defaults to current request locale
            editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple
            fullscreen: true # defaults true, applies to simple and ckeditor editors
            theme: smoothness # jquery theme V5
            include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
            path_prefix: http://application.local:8080
            connector:
                debug: false # defaults to false
                roots:       # at least one root must be defined
                    uploads:
                        show_hidden: false # defaults to false

            relative_path: false #permet d'utiliser l'URL en absolute
            locale: %locale% # defaults to current request locale
            editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple
            fullscreen: true # defaults true, applies to simple and ckeditor editors
            theme: smoothness # jquery theme V5
            include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
            path_prefix: http://application.local:8080
            connector:
                debug: false # defaults to false
                roots:       # at least one root must be defined
                    uploads:
                        show_hidden: false # defaults to false
                        driver: LocalFileSystem
                        path: uploads/default/flo #...non chrootera dans ce dossier
                        url: uploads/default/flo #URL utilisé /elfinder/{instance}/{homeFolder}
                        upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
                        upload_deny: ['all']
                        upload_max_size: 2M

I defined in a static way here. How to defined a "homeFolder" dynamicly? In other word, "homeFolder" will be create in the instance folder, with is id.

I just want to know if you ever try this? I think I could use this classe to redefined parameters:

https://github.com/helios-ag/FMElfinderBundle/blob/master/Configuration/ElFinderConfigurationReader.php

@helios-ag
Copy link
Owner

Hi @chadyred, you can override ElFinderConfigurationReader class with your own, more information can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants