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 thefmsWorkspace 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:
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:
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
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.Save references and edited images
A single FileUpload selection stores a nullableassetId: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.