How-tos / How to use Ftp

FTP support is only available in the Professional and Enterprise License package

Step 1

Add FTP to the plugins list in the config file.

$moxieManagerConfig['general.plugins'] = 'Favorites,History,Uploaded,Ftp';
<!-- Make sure the plugin is added in the web.config -->
<plugin type="MoxieManager.Plugins.Ftp.Plugin" />

<!--- Add to plugins -->
<add key="general.plugins" value="Favorites,History,Uploaded,Ftp" />
Step 2

Add the FTP configuration to config file.

$moxieManagerConfig['ftp.accounts'] = array(
    'FTPServer' => array(
        'host' => 'www.domain.with.ftp',
        'user' => 'username',
        'password' => 'password',
        'rootpath' => '/public_html/wwwroot/images',
        'wwwroot' => '/public_html/wwwroot',
        'passive' => true,
'urlprefix' => '{proto}://{host}'
<add key="ftp.sites">
<site name="FTPServer"
passive="true" />

rootpath is the path you want listed as root folder of your FTP.

wwwroot is the public folder of remote site, see example above.

urlprefix is optional, by default it sets to the same domain as the hostname.

Step 3

Add your FTP to the rootpath config in config file.

$moxieManagerConfig['filesystem.rootpath'] = 'ftp://FTPServer';
<add key="filesystem.rootpath" value="ftp://FTPServer" />

Note that the name must match with what you called your site in the ftp config in Step 2.

It is also possible to have many rootpath, if you wish to list local folder as well as some ftp server. Check out filesystem.rootpath config for more information about that.

Note, problems with paths

If your not getting a proper return path from the FTP plugin, you might need to fiddle with urlprefix setting and configure the correct domain for a public url to the file, if the file is possible to access publicly.