Skip to content

Media management

Media library with file type, size, owner, usage, and management actions

Light · Dark

Manage images and files for your sites from Media in the admin sidebar.

  1. Open Media.
  2. Choose Upload files, select a file, and choose its site in Attach to site.
  3. Submit the action and wait for the upload success notification. The file is now available to attach to pages and components; uploading alone does not place it on a public page.

Uploaded files are served from your site’s own address, so Capell refuses types a browser would run as a page: HTML, XML and script files, and any file type not on the allowed list. An SVG is stored only when it is a plain drawing. If an SVG is refused, export it again from your design tool without scripts, embedded HTML or interactivity. To allow another file type, a developer adds its extension to capell.media.uploads.allowed_extensions.

  1. Open a media item using Manage media.
  2. In Details for each language, choose Add details for another language if needed and select a Language for each entry.
  3. Fill Alt text (a short description of the image), and optionally caption and credit.
  4. Mark an image Decorative image only when it adds no information — this leaves the alt text empty on purpose so screen readers skip it.
  5. Repeat for each language you will publish, then save.
Example media metadata form with localized alt text, caption, credit, and decorative controls

Light · Dark

  • When the active media backend supports it, open the item and drag the focal point so automatic crops keep the important part of the image in frame. (The backend is set by CAPELL_MEDIA_BACKEND; the default backend may not expose cropping.)
Media crop tab with the focal-point editor for supported backends

Light · Dark

If your site has the Media AI package, the media item also offers AI actions such as suggesting alt text. Review every suggestion before saving.

  1. Open the existing media record and choose the replace-upload action.
  2. Select the replacement file and confirm the action.
  3. Verify the success notification, then review the existing metadata and uses before leaving the record.

Media list after a successful replacement upload

Replacement keeps the media record and its relationships while swapping the underlying file; the success notification confirms the upload completed.

Replacement also keeps the original filename and public URLs, even if the upload has a different name. Choose a file with the same MIME type; a different media type requires a new asset so existing URLs retain their content-type contract. Bytes and conversions are staged in a private workspace before the original files change, and a failed write or metadata save restores the previous file set. If storage also prevents recovery, the failure report identifies the private backups and recovery manifest for an operator to restore before retrying. If database rollback fails, file recovery still runs and the private backups are retained so an operator can check the database outcome before retrying. The original replacement failure and the rollback failure are both reported.

A cleanup warning after a successful replacement means the replacement is already live. Do not replace it again: an administrator should remove the retained private workspace after checking the failure report. Cleanup errors never replace the original exception from a failed replacement.

  • Deleting media removes it from the library. Check where an image is used before deleting, because pages referencing it will lose the image.
  • Allowed file types and size limits come from your media configuration and host upload limits (upload_max_filesize, post_max_size). Ask your developer if an upload is rejected.

Media AI actions come from the optional Media AI package. Admin only supplies the extension surface, so the default media surface works without the package. Package documentation should show an action only after its capture contract opens or waits for that action explicitly.

Localized media metadata (alt text, captions, credits, decorative flag) is stored on the shared polymorphic translations table in the translation meta JSON column. The active backend is resolved from capell.media.backend (CAPELL_MEDIA_BACKEND, default spatie). Render media in Blade with <x-capell::media> so output stays on the public-safety contract.