# Configure File Manager

> Link N1ED to your Flmngr backend with the File Manager URL and Files URL, then set up folders, uploads, stock images and the file list in the Dashboard.

Source: https://n1ed.com/docs/configuration/file-manager  
Section: File manager > File manager settings  
Updated: 2026-11-13  
Every page of n1ed.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://n1ed.com/llms-full.txt

N1ED browses, uploads and edits images with the Flmngr file manager. Its settings are in the **File Manager** section of your [Dashboard](https://n1ed.com/dashboard)'s **Settings** tab, in the same order as on this page. Most of them are part of the Premium plan: on other API keys you can see them but not change them.

## Link file manager with the server

Two URLs connect N1ED to your file storage: the **File Manager URL**, where the Flmngr backend you installed on your server answers, and the **Files URL**, the public address of the folder it manages, from which N1ED builds the links to your files. Set both in the **Server** row.

![Server row of the File Manager settings: File Manager URL, User, Password, Files URL](https://n1ed.com/img/screenshots/docs/widgets/config-editor/config-editor-file-manager.png)

Until you set them, N1ED uses our public demo file server, which is for trying N1ED out and not for your real files. Please review the [File manager installation manual](https://n1ed.com/docs/file-manager) to set up the file manager on the server side if you haven't done so already.

If your server asks for a login (HTTP Basic Auth), fill in **User** and **Password** too, and every request of the file manager carries them. Keep in mind that the configuration of an API key is sent to every browser that opens your editor, so anyone who can open the editor page can read this password. Use it only to keep robots out, never for an account that protects anything else.

With a CMS module (Drupal, Joomla and others), the module tells N1ED where its file manager is, so these fields are locked in the Dashboard.

## Directories settings

The **Directories** and **Uploads** rows control the folder tree on the left of the file manager, and where files go when they are uploaded without opening it.

![Directories and Uploads rows of the File Manager settings](https://n1ed.com/img/screenshots/docs/widgets/config-editor/config-editor-file-manager-directories.png)

### Available options

- **Auto expand tree levels:** how many levels of the folder tree are open when the file manager starts. The folder of the file you are editing is always open.
- **Preload auto expanded directories only:** instead of fetching the whole folder tree at once, the file manager loads the first level of folders, and the folders inside each one when you open it. Use it for storages with many folders. Search only looks through the folders loaded so far.
- **Sort directories:** None keeps the order your server returns, Alphabetical sorts by name character by character, Natural sorts numbers the way people do ("9" before "10") and ignores letter case.
- **Hide folders with names:** one name per line. Folders with exactly that name (letter case matters) are not shown in the tree, at any depth. This hides them from view only: the folders are still there and search still looks into them.
- **Default upload directory:** the folder, relative to your storage root, for uploads made without opening the file manager: files dropped or pasted into the editor, and the **Upload** button. Uploads made in the file manager itself go to the folder that is open there.
- **Uploads hierarchy:** adds date folders inside the default upload directory, from the date of the upload: `yyyy/mm` gives `/2026/09/`, `yyyy/mm/dd` gives `/2026/09/5/` (the day has no leading zero). The folders are created on the first upload. In code the values are written `YYYY/mm` and `YYYY/mm/dd`, capital Y ([`Flmngr.defaultUploadDirStructure`](https://n1ed.com/docs/configuration/file-manager#uploads-hierarchy)).
- **When a file name is taken:** what an upload made outside the file manager does when a file of that name already exists: **Auto rename** saves the new one as `photo_1.jpg`, **Overwrite** replaces the old one, **Ask** opens the upload dialog with the choice. Inside the file manager the dialog always asks; this setting only preselects its answer. A dropped file keeps its own name; an image pasted from the clipboard has none (browsers call it `image.png`).
- **Ask for a name when an image is pasted:** such an upload first opens the dialog to name the file; the name is checked against the server as you type. A file copied with its name (from a file manager) and pasted keeps that name and is not asked about.

## File list settings

The **File list** row sets how the files of the open folder are listed.

![File list row of the File Manager settings](https://n1ed.com/img/screenshots/docs/widgets/config-editor/config-editor-file-list-settings.png)

### Available options

- **Load on scroll:** the file manager lists a big folder in portions of this many files and loads the next one when you scroll to the end.
- **Initial file sorting order:** by Name, Size or Date. Users can still change it in the file manager.
- **Ascending sorting order:** uncheck it for Descending.
- **Enable file grouping by date:** puts a header over the files of each period while the list is sorted by date.
- **Group files by:** the period for those headers: Date (today, yesterday, then each day), Week, Month or Year.
- **Hide files with names:** one name per line, for example `.gitignore`. With our PHP backend a line can be a pattern: `*.log` hides every log file, and letter case does not matter. Hidden files are left out of search results too.

## File view settings

The file manager shows a folder as previews or as a table. The **File view** row picks what each of the two shows under a file: its size, the resolution of an image, the date and the time it was changed, and its folder, which is shown in search results only.

![File view row of the File Manager settings](https://n1ed.com/img/screenshots/docs/widgets/config-editor/config-editor-file-manager-file-view-settings.png)

## Stock images

The file manager can search free photos on Unsplash and add the one you pick to the open folder: the **Get from stock** button on its toolbar. It needs your own Unsplash access key in the **Stock images** row. [How to get an Unsplash access key](https://n1ed.com/docs/configuration/generate-unsplash-key).

![Stock images row of the File Manager settings: Unsplash API access key](https://n1ed.com/img/screenshots/docs/widgets/config-editor/unsplash-api-key-setting.png)

## Advanced settings

The **Advanced** row has two options, and the login for your server is in the **Server** row (see [Link file manager with the server](https://n1ed.com/docs/configuration/file-manager#link-flmngr)).

![Advanced row of the File Manager settings: Remove Flmngr link, codec](https://n1ed.com/img/screenshots/docs/widgets/config-editor/config-editor-file-manager-advanced-settings.png)

### Available options

- **Set username and password:** for servers with [HTTP Basic Auth](https://flmngr.com/doc/api-load#method_load__param_urlFileManager__user), in the **Server** row now.
- **Unsplash API key:** has its own **Stock images** row now, see [Stock images](https://n1ed.com/docs/configuration/file-manager#stock-images).
- **Remove Flmngr link:** hides the bar at the bottom of the file manager with the Flmngr logo and the help link.
- **Use codec to get through a firewall:** Base64 encodes the values of every request to your server, for firewalls that block requests with paths or HTML in them. Your backend has to decode them: our PHP backend does.

## Configuration parameters

Each setting above is a key in the configuration of your API key. You can also set it in the editor's own config for a particular page or user, see [Dynamic config](https://n1ed.com/docs/configuration/api). A value set there overrides the Dashboard.

## File Manager URL

URL of the Flmngr backend on your server.

- **API parameter:** `Flmngr.urlFileManager`
- **Type:** `string`
- **Default:** `https://flmngr.democdn.com/file-manager-default`
- **Dashboard:** Settings → File Manager → Server → File Manager URL

More info in the [installation manual](https://n1ed.com/docs/file-manager/php-composer). A top-level `urlFileManager` key from older configs is still used while this one is empty or the default.

## User

User name for accessing the file manager. Use it only if your server requires Basic Auth.

- **API parameter:** `Flmngr.urlFileManager__user`
- **Type:** `string`
- **Default:** `null`
- **Dashboard:** Settings → File Manager → Server → User

## Password

Password for accessing the file manager. Use it only if your server requires Basic Auth, and remember that it is readable by anyone who can open the editor page.

- **API parameter:** `Flmngr.urlFileManager__password`
- **Type:** `string`
- **Default:** `null`
- **Dashboard:** Settings → File Manager → Server → Password

## Files URL

URL prefix of the files on your server: the public address of the storage root.

- **API parameter:** `Flmngr.urlFiles`
- **Type:** `string`
- **Default:** `https://flmngr.democdn.com/files/default`
- **Dashboard:** Settings → File Manager → Server → Files URL

More info in the [installation manual](https://n1ed.com/docs/file-manager/php-composer). A top-level `urlFiles` key from older configs is still used while this one is empty or the default.

## Uploads directory

The default directory for uploads made outside the file manager, relative to your storage root.

- **API parameter:** `Flmngr.defaultUploadDir`
- **Type:** `string`
- **Default:** `/`
- **Dashboard:** Settings → File Manager → Uploads → Default upload directory

More info in the [installation manual](https://n1ed.com/docs/file-manager/php-composer). A top-level `dirUploads` key from older configs is still used while this one is `/`.

## Uploads hierarchy

Date folders to create inside the default upload directory.

- **API parameter:** `Flmngr.defaultUploadDirStructure`
- **Type:** `string`
- **Default:** `flat`
- **Valid values:** `flat`, `YYYY/mm`, `YYYY/mm/dd`
- **Dashboard:** Settings → File Manager → Uploads → Uploads hierarchy

## Upload mode

What an upload made outside the file manager (the **Upload** button, a pasted or dropped file, `Flmngr.upload()`) does when the name is already taken. Files pasted or dropped together go up together: one dialog lists them all and asks once. An image lands as an image, any other file as a **Download** link to it.

- **API parameter:** `Flmngr.uploadMode`
- **Type:** `string`
- **Default:** `AUTORENAME`
- **Valid values:** `AUTORENAME`, `OVERWRITE`, `ASK`
- **Dashboard:** Settings → File Manager → Uploads → When a file name is taken

`AUTORENAME` saves the new file under a free name (`photo_1.jpg`), `OVERWRITE` replaces the existing file, `ASK` opens the upload dialog so the user chooses (rename automatically, overwrite, or type new names; with "Auto rename" selected the dialog shows the name that will be used). Inside the file manager the dialog always asks, and this value only preselects its answer. An upload started from code without the dialog (`Flmngr.upload()` without `interactive: true`) cannot ask and renames automatically.

## Ask for a name when an image is pasted

An image pasted from the clipboard has no name of its own: browsers call it `image.png`. A dropped or chosen file keeps its name either way.

- **API parameter:** `Flmngr.askNameOnPaste`
- **Type:** `boolean`
- **Default:** `false`
- **Dashboard:** Settings → File Manager → Uploads → Ask for a name when an image is pasted

When on, an upload started by a paste of such an image first opens the dialog to name the file, prefilled with `image.png`, the name checked against the server as it is typed (a taken name is allowed; the upload mode then decides). A file copied with its name and pasted is not asked about.

## Auto expand tree levels

How many levels of the folder tree are open when the file manager starts.

- **API parameter:** `Flmngr.expandLevels`
- **Type:** `number`
- **Default:** `99`
- **Dashboard:** Settings → File Manager → Directories → Auto expand tree levels

## Preload auto expanded directories only

Load the folder tree level by level instead of all at once.

- **API parameter:** `Flmngr.isDynamicDirListing`
- **Type:** `boolean`
- **Default:** `false`
- **Dashboard:** Settings → File Manager → Directories → Preload auto expanded directories only

## Sort directories

The order of the folders in the tree.

- **API parameter:** `Flmngr.sortDirs`
- **Type:** `string`
- **Default:** `none`
- **Valid values:** `none`, `alphabetical`, `natural`
- **Dashboard:** Settings → File Manager → Directories → Sort directories

## Hide folders with names

List of folder names to hide in the tree: exact names, letter case matters.

- **API parameter:** `Flmngr.hideDirs`
- **Type:** `string[]`
- **Default:** `[".cache", ".tmp", "tmp"]`
- **Dashboard:** Settings → File Manager → Directories → Hide folders with names

## Hide files with names

List of file names to hide in the list and in search results. With our PHP backend the names can be patterns (`*.log`) and letter case does not matter.

- **API parameter:** `Flmngr.hideFiles`
- **Type:** `string[]`
- **Default:** `[".gitignore"]`
- **Dashboard:** Settings → File Manager → File list → Hide files with names

## Load on scroll

How many files to load at a time in a big folder.

- **API parameter:** `Flmngr.filesPerPortion`
- **Type:** `number`
- **Default:** `100`
- **Dashboard:** Settings → File Manager → File list → Load on scroll

## Initial file sorting order

- **API parameter:** `Flmngr.orderBy`
- **Type:** `string`
- **Default:** `name`
- **Valid values:** `name`, `size`, `date`
- **Dashboard:** Settings → File Manager → File list → Initial file sorting order

- **API parameter:** `Flmngr.orderAsc`
- **Type:** `boolean`
- **Default:** `true`
- **Dashboard:** Settings → File Manager → File list → Ascending sorting order

## File grouping by date

Headers over the files of each period, while the list is sorted by date.

- **API parameter:** `Flmngr.enableFileGrouping`
- **Type:** `boolean`
- **Default:** `false`
- **Dashboard:** Settings → File Manager → File list → Enable file grouping by date

- **API parameter:** `Flmngr.groupBy`
- **Type:** `string`
- **Default:** `month`
- **Valid values:** `date`, `week`, `month`, `year`
- **Dashboard:** Settings → File Manager → File list → Group files by

## File view

What the preview and the table views show under each file.

- **API parameter:** `Flmngr.fileFields`
- **Type:** `{preview: {...}, table: {...}}`
- **Dashboard:** Settings → File Manager → File view

Each of `preview` and `table` holds five flags: `size`, `resolution`, `date`, `time` and `dir` (the folder of a file, shown in search results only). By default `size`, `resolution` and `dir` are on in both, `date` and `time` are off.

## Unsplash API access key

Your Unsplash access key for the stock image search. [How to get one](https://n1ed.com/docs/configuration/generate-unsplash-key).

- **API parameter:** `Flmngr.apiKeyUnsplash`
- **Type:** `string`
- **Dashboard:** Settings → File Manager → Stock images → Unsplash API access key

## Remove Flmngr link

- **API parameter:** `Flmngr.whiteLabel`
- **Type:** `boolean`
- **Default:** `false`
- **Dashboard:** Settings → File Manager → Advanced → Remove Flmngr link

## Codec

`1` encodes the values of every request to your backend in Base64. Use the number, not a string.

- **API parameter:** `Flmngr.codec`
- **Type:** `number`
- **Default:** `0`
- **Valid values:** `0`, `1`
- **Dashboard:** Settings → File Manager → Advanced → Use codec to get through a firewall

## CSRF protection

Extra headers or parameters for every request to your backend, when your server protects its forms from CSRF. A function, an object `{headers, params}`, or `drupal8` for Drupal's session token.

- **API parameter:** `Flmngr.urlFileManager__CSRF`
- **Type:** `function | object | string`
- **Dashboard:** no control, [set it in the editor's config](https://n1ed.com/docs/configuration/api)
