barryvdh / laravel-elfinder

elFinder bundle for Laravel
739 stars 171 forks source link

Set options dynamically #193

Open MarlonEtiene opened 7 years ago

MarlonEtiene commented 7 years ago

Hello, How can I set elfinder options dynamically? e.g

Config::set('elfinder.root_options.uploadMaxSize', '100K');

I have tried this in my controller, but not worked, the value sets in the elfinder.php was used all times.

hungnm144 commented 7 years ago

laravel-elfinder was loaded as Service Provider. You can not set options in a controller.

MarlonEtiene commented 7 years ago

@hungnm144 Thank you for your answer. Do you know if has anyway to set the max upload size dynamically?

hungnm144 commented 7 years ago

You can try https://github.com/barryvdh/laravel-elfinder/pull/88 @MarlonEtiene