Skip to content

File details: title, alt text, tags and how a file is stored

Describes PhoenixKit 3.5.0.

Every file in the media library has a details panel in the viewer, where you give it a title, alt text and a description, add tags and read what PhoenixKit knows about it. For administrators, a separate Storage page shows where the file’s copies are kept and puts them right when something is missing.

Where to find it

Open Media in the admin sidebar and click a file: the viewer opens with the Media details panel beside the picture. Hide details and Show details fold the panel away and back. A file’s viewer can be linked to directly: /admin/media?file=01a1dc20-1250-71ad-9a22-453e70802f28.

You can edit a file’s text when you may change the file: as its uploader, as an Owner or Admin, or with the Media permission in a site library. The Storage button and page need the Manage storage permission (or the Owner or Admin role).

The buttons at the top

  • Download: the original file. When smaller sizes exist, a second Download menu offers those.
  • Edit image: opens the image editor (crop, turn, mirror, straighten, hide areas, brightness and contrast). Save applies the edit to the file itself, so every page that shows it shows the edit; Save as copy leaves the file alone and adds the edited picture as a new file next to it. Whether the unedited picture is kept is a setting on Settings → Media → Configuration. Only still JPEG, PNG, WebP, AVIF, TIFF and BMP images can be edited.
  • Storage: opens the file’s Storage page (below).

Title & description

The Title & description section holds the file’s own words about itself:

  • Title
  • Alt text: the text read out to people who cannot see the image, and shown when it does not load. Images only.
  • Description
  • Tags (comma-separated)

Save writes all of it at once, and the section says Saved, or Could not save if it failed.

When the site has more than one language, the section has a tab per language. Each language keeps its own title, alt text and description; the primary language is marked with a star, and a tab with no text yet carries a dot (No translation yet). The primary language’s text shows as a grey placeholder in the other tabs: it is not copied into them. Switching tabs does not lose what you typed in another tab. Tags are the same in every language.

When a page asks for a language that has no text, the file’s text in the site’s primary language is used, then any other language.

What the panel tells you

Below the text, the panel lists Type:, MIME:, Size:, Dimensions: (with Panorama for a wide picture), Dynamic range: for HDR photos, Pages: for PDFs, Uploaded:, Uploaded by:, Updated:, Status: (with Edited for an edited image) and File UUID:.

For a photo, an EXIF section shows the camera, exposure, dates and where it was taken. Read EXIF reads it when it has not been read yet; Show on a map opens the location. This section only appears where the file’s title can be edited.

If the Comments module is installed and on, a Comments thread for the file sits at the bottom of the panel. You can also draw shapes on an image and reply to each one.

At the very bottom: Move to trash for a live file, or Restore and Delete forever for a file in the trash.

The Storage page

Storage opens /admin/media/01a1dc20-1250-71ad-9a22-453e70802f28/storage: how this one file is stored. Open in media view goes back to the viewer.

It shows:

  • The file’s facts, and Checksum of the original (SHA-256).
  • Library and profiles: the Library it is in, its Storage profile (how many local and cloud copies) and its Rendition profile, each marked Up to date or Not up to date. “Not up to date” means the file was placed or made by an older version of that profile; PhoenixKit brings it up to date in the background.
  • Renditions: every smaller copy the file should have (Rendition, Asked for, Stored, Made, Checksum, Kept in, State), with View, Download and Make per row. When all is well it says Everything this file should have is stored.

The actions:

  • Verify renditions: reads every copy back from its bucket and compares it with the checksum it was stored with. The Verification result says how many copies match, for example “3 of 3 copies match the checksum they were stored with”, and marks each bucket All intact or Needs attention.
  • Fix all issues: makes what is missing. A Repair report says what was done, or There was nothing to fix.
  • Regenerate all: makes every rendition again from the original, after a confirmation. This can take a while.

The Storage log lists anything that went wrong with this file and any repair. All storage history opens the full log.

For an edited image, Unedited original keeps the picture as it was before the edit: Download the unedited original, Restore the original (removes the edit, after a confirmation) or Delete the unedited original. If the last edit could not be applied, Try again retries it.

What it doesn’t do

  • Tags are not translated.
  • Files in a library that a module manages cannot have their text, rotation or image changed from Media.
  • Changing the site’s primary language does not move or convert any file text: each language keeps its own.

For developers

Read a file’s text in code with Storage.translated_alt/2, Storage.translated_title/2 and Storage.translated_description/2 (and Storage.translated_alts/2 for a list page), never from the file’s data or metadata directly.