Code samples

Live demos of how to implement, tune and use Flmngr file manager in different environment for various tasks. Each code sample is provided with editable CodePlay page, that lets you experimenting with the demo editing its code.

React Component

JavaScript / TypeScript

JS Component: Select Single Image

Attach the file manager panel to the DOM and allow the user to select a single image.

JS Component: Manage Image Gallery

File manager panel that lets users manage a set of images without opening a dialog.

JS Component: File Browser

Attach a JavaScript file browser to any HTML element for server-side file management.

Select Single Image in Dialog

Open a dialog allowing the user to select a single image and display it in your UI.

Select Image with Preview

Open a file manager dialog to select an image and automatically generate a preview.

Manage Image Gallery

Select multiple images, rearrange their order, and edit an existing gallery when reopening it.

Manage Picked Files

Reorder, remove and annotate picked files with metadata in a single Manage panel before confirming the selection.

Select Multiple Files

Pick multiple non-image files using a flexible file manager dialog.

Browse Folder

Open a full-screen file browser for full storage management without selecting files.

Upload Files

Select local files and upload them to the server without opening the file manager.

Rename Files on Upload

Preprocess files during upload with a custom hook and rename them according to defined rules.

Rename Folders with Hooks

Normalize folder names on the client: hooks auto-replace spaces with dashes when users create or rename folders.

Open Image Editor

Directly open the file manager's image editor and save changes to the server if needed.

Edit Image and Save as Base64

Edit an image and save it as Base64 in the UI without uploading to the server.

Event Listeners

Listen to all file and folder events (create, upload, rename, delete) and run custom logic.

N1ED with File Manager

TinyMCE File Manager

CKEditor 5 File Manager

CKEditor 4 File Manager

Froala File Manager