Skip to content

Document Creator 0.9.4: Template images can go into a chosen folder

Document Creator 0.9.4 lets a host app decide where images uploaded from the template image picker are stored in the media library. Without configuration, nothing changes: uploads still go to the root.

The host sets config :phoenix_kit_document_creator, attachments_parent_folder: {Mod, :fun}. The function receives the upload context and the user, and returns {:ok, folder_uuid} or nil for the root. The folder is passed to core’s media selector, so it works only with PhoenixKit 2.23.2 or later. Picking an existing file does not move it, and if the function fails, the upload goes to the root.

Full release notes: Document Creator 0.9.4

0.9.4 · 15 September 2026

Added

  • Images uploaded from the template image picker can be filed into a host-configured folder: config :phoenix_kit_document_creator, attachments_parent_folder: {Mod, :fun}, called as fun(:document_image, actor_uuid, %{template_file_id: id}) (or /2), returning {:ok, folder_uuid} or nil for today’s behaviour (root). No config, no change. The folder is handed to core’s media selector as scope_folder, so it takes effect only on phoenix_kit 2.23.2 or later. Picking an existing file does not move it, and core ignores an answer that is not a live folder. A hook that raises, throws or exits falls back to the root.

Changed

  • Upgraded locked dependencies: phoenix_kit 2.23.0 → 2.23.2, phoenix 1.8.13 → 1.8.14, tz 0.28.2 → 0.28.4.

Document Creator 0.9.4. Install or update: {:phoenix_kit_document_creator, "~> 0.9"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.