Clone this wiki locally

This is a list of the available options for elFinder connector (PHP part), along with their default values. Options are specified by passing an array with certain keys as first argument to elFinder() class constructor. Example:

In the example above we run elFinder using default wrapper elFinderConnector.

Main options

locale

Set locale. Currently only UTF-8 locales are supported. Passed to setLocale PHP function.

Data type: stringDefault value:'en_US.UTF-8'

debug

Send debug to client.

Data type: booleanDefault value:false

bind

Bind callbacks for user actions, similar to jQuery .bind(). Accepts array(key => value) pairs where:key is a space separated list of actions to bind to;value is a string with function name to callORvalue is array($instance, 'method') where $instance is instance of your callback class and method if a name of a function to call (in call $instance->method(...)).

Callback will be called with next parameters $cmd, $result, $args, $elfinder.

driver

Volume driver. Set storage engine for current root, can be one of LocalFileSystem, MySQL, FTP

Data type: stringDefault value:'LocalFileSystem'

path

Root directory path

Data type: stringDefault value:''

startPath

Open this path on initial request instead of root path

Data type: stringDefault value:''

URL

URL that points to path directory (also called 'root URL'). If not set client will not see full path to files (replacement for old fileURL option), also all files downloads will be handled by connector.Disable real file path from being shown

Data type: stringDefault value:''

alias

Root path alias for volume root. If not set will use directory name of path