PhoenixKitWeb.Live.Modules.Storage.LibrariesComponent (phoenix_kit v2.41.0)

Copy Markdown View Source

The Libraries tab of Settings → Media: the system storage libraries (PhoenixKit.Modules.Storage.Libraries), what each holds, and creating, renaming and deleting them.

The media page itself only switches between libraries (and only once there are two); managing them lives here, next to the buckets their files are stored in. The default library, Media, can be renamed but never deleted, and any other library only once it holds nothing — the database refuses it otherwise too. Renaming keeps a library's URL (/admin/media/library/<slug>).

Each system library picks its storage profile (where its files are kept) and variant set (which sizes its uploads get), V205. Changing either moves or resizes its files in the background.

User libraries (V203)

A second card turns user libraries on for the install (storage_user_libraries_enabled, off by default), sets how many each user may own (storage_user_library_limit) and how long a private file URL stays valid (storage_private_url_window_hours), and lists every user library as metadata only: owner, members, files, size and trash state. Their files are the users' own. Opening one goes through /admin/libraries/<uuid>, which admits only an Owner or Admin and writes every opening to the audit log.