Skip to content

Staff 0.8.6: Uploads no longer land in a trashed folder

Staff 0.8.6 fixes where a person’s files and images go in the PhoenixKit staff directory, and lets core’s media reorganizer tidy staff folders.

Live folders only

A trashed copy of a person’s media folder, or of its Images subfolder, was still found, and being older it won over the live folder beside it. The Files and Images tabs then showed the trashed folder and new uploads went into it. Folder lookups now skip trashed folders.

The configured parent-folder hook’s answer is now cleaned up: an upper-case id no longer misses its folder, and an answer that is not an id falls back to the root with a warning instead of making every first upload fail.

Media reorganizer support

On core 2.24 or later, the media reorganizer can now plan moving each person’s folder under the parent folder your hook names. It also reports duplicates and folders of people who are missing or trashed. Without a hook configured it only reports.

Full release notes: Staff 0.8.6

0.8.6 · 16 September 2026

Added

  • PhoenixKitStaff.MediaReorganizer, staff’s plan source for core’s media reorganizer (core 2.24+), registered via media_reorganizer/0. It plans moves of each person’s staff-person-<uuid> folder under the :attachments_parent_folder hook’s answer and reports duplicates, relocated copies, hook failures, root answers for parented folders, and orphaned folders of missing or trashed people. With no hook configured it only reports.

Fixed

  • Person folder lookups skip trashed folders. A trashed staff-person-<uuid> (or its Images subfolder) was still resolved, and as the older twin it won over a live folder beside it, so the Files/Images tabs showed the trashed folder and new uploads went into it.
  • The parent-folder hook’s answer is cast and downcased. An upper-cased uuid no longer loses to a root twin, and a non-uuid answer falls back to the root with a warning instead of failing every first upload.

Staff 0.8.6. Install or update: {:phoenix_kit_staff, "~> 0.8"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.