Install Flmngr file manager server side

In order to let your Flmngr file manager dialog to list files, upload and modify them on the server, you need to install official server side script to add such support to your server.

Users who use CMS integrations like Drupal already have backend installed and configured. Users of custom integrations (when you install JS snippet or CKEditor or TinyMCE plugin) need to integrate the file manager backend to their CMS or framework manually.

Install the package

Go into your PHP project and in its root directory, run:

composer require edsdk/flmngr-server-php
Composer package docs

if you need more info

If you do not use Composer you can
use a no-Composer archive

And let some URL be a handler. If you do not use any framework, just create a PHP file `flmngr.php` with the following contents:

            'dirFiles' => '/var/www/files',

In frameworks like Laravel, Symphony, Yii, CodeIgniter, etc., you can create a new method in some controller calling the same method. A URL mapped to this method will be the entry point of all Flmngr requests.

Using the visual Dashboard, you can specify the URLs of your server to link Flmngr with it.

  • File Manager URL is the full URL of flmngr.php.
  • Files URL is the full URL of dirFiles (not a directory path!).
Go to Dashboard
File manager control panel

Note: Alternatively, you can pass these parameters as Flmngr.urlFileManager and Flmngr.urlFiles parameters into the Flmngr config. This is useful when you need to use different directories based on the current user to support multi-⁠user installations.

Files URL explanation

The Files URL option is the prefix Flmngr will add to any file when inserting it into your content (or returning it into a callback of your API call). If you can use Flmngr fine, but all inserted images are broken, please see this sample to understand how it works:

Files URL or Flmngr.urlFiles client-side parameter
dirFiles server-side parameter
+ /path/to/image.png

Multi-user environment

Flmngr can work in applications where you have many users with different storages. You can programmatically specify Flmngr.urlFiles and dirFiles parameters synchronously with values based on the current user's session.

Multi-user manual

S3/Blob support

Flmngr supports not only your own server but also cloud storages: Amazon S3 and Azure Blob. This is an enterprise feature we offer as a separate option.

S3/Blob support