← All changes

SummerCMS 0.6.10

v0.6.102 min readFramework

Highlights

SummerCMS 0.6.10 introduces a built-in Media Library (modules/album) with Postgres-indexed metadata, virtual folders, immutable public URLs, synchronous WebP responsive variants, an embedded admin browser and picker, a type: mediafinder form field, unified Mail Images, and 7 built-in Media Library MCP tools.

Added

  • Core Media Library (modules/album): Postgres-indexed summer_media_folders, summer_media_items, and summer_media_upload_tokens tables with immutable media/<short-id>/<slug>.<ext> blob keys so moving items between folders or editing metadata never breaks published URLs.
  • Zero-DB-hit static serving and signed uploads (surf): GET/HEAD /media/{short_id}/{file} serves blobs directly from the storage bucket with strict segment validation, Cache-Control: public, max-age=31536000, immutable, X-Content-Type-Options: nosniff, sandboxing CSP, and Content-Disposition: attachment for non-inline files. Single-use DB-backed upload tokens power PUT/POST /media/upload/{token} with atomic token consumption and MIME enforcement.
  • Automatic WebP responsive variants: Raster image uploads synchronously generate non-upscaling 480w, 960w, and 1600w WebP variants stored beside the original and exposed as srcset.
  • Admin Media Library UI and type: mediafinder: New /media admin screen with virtual folder tree, grid/list views, debounced search, type filters, drag-and-drop uploads, inspector panel, hard-delete confirmation, reusable MediaPickerModal, MediaFinderField, and summer-media-pick custom-element event wiring for plugin editors.
  • Built-in Media Library MCP tools: Auto-mounted summercms.media tools (media_prepare_upload, media_upload, media_list, media_get, media_update, media_delete, media_create_folder) under the backend guard with media:read and media token scopes.

Changed

  • Mail Images unified over modules/album: Mail image uploads now store under the root mail virtual folder in modules/album with automatic WebP variants while preserving existing /uploads/... URLs via idempotent backfill.

Fixed

  • CSRF handling for in-process MCP dispatch: In-process backend dispatches from pier now pass cabana's CSRF guard so write MCP tools work without synthetic browser headers.
  • Scoped Mail Image access: GET /mail/images/{id} and MailBrandSetting logo validation are strictly scoped to inline raster images inside the root mail folder.
  • Folder conflicts and HEAD serving: Duplicate sibling folder slugs return 409 Conflict instead of 500, cabana recomputes variant URLs from current storage config, and HEAD requests on /media/{short_id}/{file} serve Content-Length from bucket attributes without opening a reader.
Subscribe via RSS