Skip to content

Media settings: upload limits, trash, health and storage history

Describes PhoenixKit 3.5.0.

Settings → Media holds everything about how the media library stores files. Buckets, storage profiles, rendition profiles and libraries each have a guide of their own; this one covers the remaining tabs: Configuration, Health, Tools, History and External libraries.

Where to find it

Settings → Media (/admin/settings/media). You need the Manage storage permission (a part of Media), or the Owner or Admin role. Each tab has its own address, for example /admin/settings/media?tab=configuration.

If a program that media processing needs is missing from the server, a line at the top of every tab says so (“Not found on this server: …”) with Details.

Configuration

The Configuration tab of PhoenixKit's media settings: annotated thumbnails, image editing, maximum upload size, files per upload, concurrent and resumable uploads The Configuration tab of PhoenixKit's media settings: annotated thumbnails, image editing, maximum upload size, files per upload, concurrent and resumable uploads

Settings → Media → Configuration.

Media Configuration starts with a note that Copies, renditions and deep zoom are set per library, with links to Storage profiles, Rendition profiles and Libraries. Then:

  • Annotated Thumbnails: draws a file’s annotation shapes (rectangles, marker strokes) into its grid thumbnail, redone in the background when the annotations change. With it off, the grid shows the plain thumbnail. Needs ImageMagick. This is the site default; a library can choose otherwise on its own page.
  • Image Editing: what saving an edited image does with the original.
    • Keep the original (recommended): the unedited image is kept privately, so an edit can be changed or undone. Owners can delete it themselves.
    • Replace the original: every save overwrites the image for good. Nothing can be undone, and redacted areas are gone from storage.
  • Max Upload Size (MB): the largest file one upload may be, in MB (500 by default).
  • Max Files Per Upload: how many files one selection or drop may carry (100 by default). More than this are turned away with a message.
  • Max Concurrent Uploads: the most files sent at the same time (5 by default). The upload manager measures the connection and uses as many as help, up to this; 1 sends one file at a time.
  • Resumable uploads: sends files in pieces the server keeps, so a paused upload goes on from where it stopped and a lost connection or a reloaded page does not start a file over. With it off, files are sent whole.
  • Keep trashed files for (days): after this many days a file or folder in the trash is deleted for good (30 by default).
  • Keep the bucket log for (days): entries in each bucket’s log are removed after this many days (30 by default).

Nothing is saved until you press Apply Changes. It stays disabled with No changes to apply until you change something.

Health

Health counts the site’s files and how many are stored the way their library wants:

  • Total Files: active and in the trash.
  • Up to date: stored as their library wants, with its renditions.
  • Waiting: for the background process that makes copies and renditions.

Under Copies and renditions it lists the files that are not up to date yet, with their Library, Type and what they are Waiting for (a missing copy, a copy on a bucket the profile no longer uses, a missing or outdated rendition). With nothing waiting it says All Healthy. Files in users’ personal libraries are counted but not listed.

The work runs by itself, one run per library. Reconcile now only starts it sooner. Refresh counts again: the report is read when you open the tab, not when the page loads. Storage runs opens the storage runs on the Jobs page.

Tools

  • Media Stats: not available yet (the button is disabled, “Coming soon”).
  • Find Orphaned Files: opens Media showing only files no record points to, so you can review or trash them.
  • Repair Media Module: puts back what storage needs to work: a bucket, a writable bucket in the Default profile, and a copy count its buckets can hold. It also resets the default renditions. Buckets, copy settings and uploaded files are kept. It asks for confirmation first and reports what it did.

History

History lists every change to the site’s storage set-up: who changed which bucket, profile, library or rendition, when, and what it changed from and to. It also lists what the background storage runs did. Filter by library (All libraries), by bucket (All buckets) and by kind: Everything, Settings changes, Job runs or Damage and repairs. Settings changes are kept for good.

The list refreshes by itself while it is open. With the Dashboard permission, each row links to its entry in the Activity log.

External libraries

External libraries lists the programs on the server that media processing uses, under Tool, Used for and Status (the version, or Missing):

  • image renditions, resizing and conversion (ImageMagick);
  • zoomable tiles for large images;
  • reading HEIC photos from phones, without which no rendition can be made of a HEIC photo;
  • libvips, which finds the subject of a photo so a rendition can crop around it;
  • video renditions and thumbnails, and video dimensions, duration and capture date (FFmpeg);
  • PDF preview images and PDF page count.

For a missing tool, the row says what it is for and how to enable it. Check again looks for them again after you install something.

What it doesn’t do

  • The copy count, renditions and deep zoom are not set here: they belong to storage profiles, rendition profiles and libraries.
  • Lowering the trash retention does not delete anything at once; trashed files are deleted by the daily clean-up.

For developers

libvips comes with the Vix package: add {:vix, "~> 0.42"} to your app’s mix.exs, fetch dependencies and restart. The other tools are installed on the server’s operating system.