Skip to main content
FLEX Media Studio is a self-hosted media library for Laravel and Filament. Connect it to FLEX Fields to upload directly into a workspace, choose an existing file, or insert library images into rich text. FLEX Fields handles the form and editor interface. Media Studio handles permissions, storage, version references and configured renditions.

Install and authorize Media Studio

Install Media Studio alongside FLEX Fields and publish its matching Laravel migrations, configuration and browser assets. Follow the Media Studio installation guide and the FLEX Fields integration setup. FLEX Fields continues to support its local disk and Spatie upload modes independently.

Find your workspace ID

Open Media Studio in your own application and select the workspace you want to use, such as Media library. In the address bar, copy the value of the fmsWorkspace parameter. If the address does not show it yet, open a folder in the workspace and check again. With Studio URL synchronization enabled, the address will look like this:
In this example, the workspace ID is 01ARZ3NDEKTSV4RRFFQ69G5FAV. To choose an upload destination or folder scope, open that folder and copy its fmsFolder value. Use the values from your own installation. For a field that always uses one workspace, store the ID in your application config:
Set STUDIO_WORKSPACE_ID in the host application and pass workspace: config('studio-integration.workspace_id') to studio(). Use a closure when the ID is determined per request, for example from the current Filament tenant’s workspace mapping. Embedded views with URL synchronization disabled can use the id returned by Studio’s authenticated workspace endpoint. The actor must have access to the configured workspace. Uploads also require Studio upload permissions.

Let users upload or choose an existing file

Upload file sends validated bytes to the configured workspace and folder. Choose media opens Studio and stores the selected asset and version reference. Selecting an existing asset leaves the stored original in place. The picker can show a compact layout, folders, or a workspace and folder sidebar. See all picker and upload settings and Filament tenant setup. Storage settings such as the private S3 disk and conversion recipes belong to Media Studio. Folder IDs select the destination within Studio.

Insert library images with FlexRichEditor

Use the same workspace configured for the upload field.
The toolbar action opens Studio at the configured workspace. This setup inserts existing images. See the RichEditor integration guide for image formats, ready renditions and attachment ID configuration.

Save references and edited images

A single FileUpload selection stores a nullable assetId:versionId string. For a multiple field, store the ordered references in a JSON column with an array cast. Register application usages when saving the owning record so Studio can protect actively used versions. Removing a selection from the field leaves the Studio asset available. See reference persistence. Use Studio’s version publisher when wiring classic or AI image edits into a Studio-backed field. Save the edit after the user chooses the result, and configure thumbnail generation and previous-version retention for your workflow. See classic and AI editors for Studio uploads and the FLEX AI editor guide.
Last modified on November 29, 2026