Introduction
An asset library for the DMS, with folders, per-folder permissions, direct-to-storage uploads, stable delivery URLs, image sizes and light image editing.
@antelopejs/dms-media gives your DMS a media library. Owners organise images, videos and documents in a Finder-style explorer. Your pages reference those files through an AssetType form field, which opens the same explorer as a picker. The browser uploads files straight to the storage, the module delivers them from stable URLs, and it renders named image sizes on demand.

One image from upload to delivery
After installation, an owner opens Library, picks a folder and uploads an image. The file page of that image has an Alt text field and a Delivery tab with the link to copy. That link, /media/<id>/<name>, names the asset. When a browser follows it, the module answers with a redirect to a short-lived signed URL of the storage for most file types, so the signed URL is never the link you share. The module streams SVG and XML files itself.
A new folder is private, and a new file takes the visibility of its folder. A signed-in member with read access to its folder can open the link, and an anonymous request gets no file. Only the owner can make a file or a folder public, for example for a public website image. Members who need to choose images do it through an asset field on your pages, without access to the owner-only Media pages.
What it brings
Finder-style explorer
Folders, smart views, facets, accent-insensitive search, drag and drop, bulk actions, zip downloads and keyboard shortcuts.
Per-folder permissions
Folder rights reuse the DMS permissions and roles. A field's folder inherits the rights of the page that holds it.
Stable delivery
A /media/<id>/<name> link keeps working through edits, renames and visibility changes. A link with an old file name redirects to the current one.
Image sizes and editing
sharp renders each named size on its first request. Crop and rotation keep the original upload, so you can revert to it.
How members use it
The Media pages are the owner's administration of the library. Like every DMS module page, they are owner-only. Members reach media through your pages instead. An AssetType field on a project page opens the picker on a folder defined in advance, with the rights of that page.

Where it lives in the dashboard
| Group | Page | Path |
|---|---|---|
| Library | Overview | /modules/media/overview |
| Library | Library | /modules/media/files |
| Library | Uploads | /modules/media/uploads |
| (hidden) | File and Edit image | /modules/media/file?asset=, /modules/media/editor?asset= |
| (hidden) | Activity | /modules/media/activity |
| Settings | Image sizes | /modules/media/presets |