PhoenixKit 2.60.0: A storage page for every file, with verify and repair
PhoenixKit 2.60.0 gives every media file a storage page where an admin can verify its copies, repair damaged ones and regenerate renditions, with a permanent log of what was found and fixed.
A file’s storage page
The new page at /admin/media/:uuid/storage, for holders of media.manage, shows the checksum of the original and a table of renditions: what is wanted against what is stored, its state, checksum, buckets and when it was made. Verify renditions checks them bucket by bucket, Regenerate all remakes them, and the unedited original can be downloaded, restored or deleted. A card names the file’s library, storage profile and rendition profile.
Fix all issues reads every copy back. A missing or damaged copy is replaced from a good one in another bucket, the original included; a size with no good copy left is made again from the original; and an original with none is reported as unrecoverable.
A damage and repair log
Each damaged copy found and each repair is a permanent activity entry. Settings → Media → History gets a Damage and repairs view, filtered by kind, library or bucket. A file’s storage page has a Storage log, and a bucket’s page warns about damaged copies from the last 30 days. Files in a user’s private library are not written to the site’s log.
Folder layout and the media view
Storage profiles can choose 0 to 3 levels of hash folders for new uploads; existing files keep the folder they were stored in. /admin/media/:uuid now redirects to the media view, whose sidebar is Media details. The Storage link, uploader and file UUID there are shown to media.manage holders only. PhoenixKit is now also translated into Ukrainian.
Fixes
Delete forever in the viewer deleted nothing when the file was opened from outside the trash view; it now deletes. The sitemap lists Publishing posts under each language’s own slug. The viewer honours contributor limits in shared libraries, and the EXIF panel no longer shows two buttons under an empty heading.
Upgrading
Run mix phoenix_kit.update for V216, which adds one column to storage profiles. No existing file or key changes. Links to /admin/media/:uuid keep working through the redirect.
Full release notes: PhoenixKit 2.60.0
2.60.0 · 9 October 2026
Migration V216 (run mix phoenix_kit.update). It adds one column, key_levels smallint NOT NULL DEFAULT 1,
to phoenix_kit_storage_profiles; no existing file or key changes.
Added
- A file has a storage page at
/admin/media/:uuid/storage(media.manage): the checksum of the original, a table of renditions (wanted against stored, state, checksum, buckets, when each was made), Verify renditions (grouped by bucket), Make what is missing, Regenerate all, and the unedited original (download, restore, delete). A “Library and profiles” card names the file’s library, storage profile and rendition profile, and whether the file was last placed by the profile’s current version. - Fix all issues on that page (
Storage.FileRepair): every copy is read back, a missing or damaged copy is replaced from another bucket’s good one (the original too), buckets that hold an object no row names are recorded, a size is made again from the original when no good copy is left, and an original with none is reported as unrecoverable. It does not reconcile after a copy it could not put right. - A repair trail. Each damaged copy found by Verify or the fixer is a permanent
storage.copy.damagedActivity entry against its bucket, each repair astorage.file.repairedone. Settings → Media → History has a “Damage and repairs” view (filter by kind, library, bucket), a file’s storage page a Storage log, and a bucket’s page warns about the damaged copies of the last 30 days. Files in a user’s private library are not written to the site’s log. - A folder layout choice for storage profiles (V216,
Storage.KeyLayout): 0 to 3 two-character hash folders between a library’s prefix and the file’s MD5. New uploads follow their library’s profile; a file keeps the folder stored on its row. The profiles tab shows how many file folders the busiest folder holds from 10 thousand to 100 million files. - Ukrainian (uk) translations (#919).
Changed
- A file’s page is the media view.
/admin/media/:uuidredirects to/admin/media?file=<uuid>(or the page of the library the file is in), keeping?annotation=. The viewer sidebar is “Media details”: status, uploader, update time, file uuid, PDF pages, tags (saved with the title), and Move to trash / Restore / Delete forever. The “Storage” link, the uploader and the file uuid are shown to holders ofmedia.manageonly. - The header over a file’s page names its library:
Media / [library] / <file>.
Fixed
- Sitemap: Publishing posts are listed under each language’s own
url_slug(#920, #921), the address the page itself canonicalises to, instead of the primary language’s slug; a post with neither slug nor path is skipped. - “Delete forever” in the viewer deleted nothing when the file was opened from outside the trash view (a link, the storage page); it only said “File moved to trash”. A trashed file in scope is now deleted.
- A repair could leave the only good copy to a reconciler’s mercy. When a copy could not be put right it was still counted healthy, so the reconciler ran and could unlink a good copy in a bucket the profile no longer names. It now reports the failure and does not reconcile.
- A duplicate upload that heals a file’s missing instance row crashed (
MatchError) under a profile with 0 hash folders, and wrote the original under a wrong key with 2 or 3. The MD5 is the last segment of the folder, whatever the layout. - Repair and regeneration preserve keys shared with another file. A rebuilt rendition gets its own key when another file still references the usual one. Repairs share the reconciler’s per-file lock, reload the edit state, survive leaving the page, verify unrecorded objects before adopting them, and skip writes to disabled buckets. Unresolved copies prevent reconciliation; an unsuccessful attempt creates no repair entry.
- The viewer honours shared-library contributor restrictions when saving title, tags, EXIF or rotation, and refuses writes after a file moves to another library. Storage-page writes also require library edit access.
- Per-size downloads remain available in the media viewer, including custom and annotated renditions,
without requiring
media.manage. - The old address of a file no longer names a private library (its uuid) to someone who cannot read it.
- The bucket page’s “damaged copies” counts copies, not log entries: verifying the same copy twice counts it once.
- The EXIF panel no longer shows two buttons and nothing else. A photo whose EXIF holds tags the panel does not print (an orientation, a lens maker) showed “All EXIF” and “Read again” under an empty heading. It now says “Nothing here about the camera, exposure, dates or location” and offers the whole dump.
- A photo with tags but nothing the summary keeps (a screenshot with only
ColorSpaceandExifVersion) is recorded as{"tags": N}rather than as having no EXIF, so “All EXIF” is offered; offsets to other data (ExifOffset,GPSInfo) are not counted and are left out of the dump. A photo with no EXIF at all stays{}. - “This photo carries no EXIF” has a “Read again” button where the host lets the reader write.
PhoenixKit 2.60.0. Install or update: {:phoenix_kit, "~> 2.60"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.