Commit graph

2 commits

Author SHA1 Message Date
Maaxxs
63dcd23977 Add remove-image button and actually delete orphaned upload files
Phase 1 of the dashboard roadmap. ImageUploadField now has a clear
button, and every controller with an image/cover_image column deletes
the old file from hifi/api/uploads/ when it's replaced or the owning
record is deleted (including cascade cleanup for gallery brand/project
deletes) - previously no controller ever unlinked a physical file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 01:32:40 +02:00
Maaxxs
e234a2435d Add photo gallery feature (brand -> project -> photos drill-down)
Mirrors the old site's Bildergalerie structure: a brand tile grid at
/galerie, project tiles within a brand, and a photo grid with a
lightbox for each project. Backed by new gallery_brands/gallery_projects/
gallery_photos tables and admin CRUD pages, gated by a new gallery.manage
permission.

Also fixes a real bug found while testing photo uploads: Apache's
mod_dir was redirecting POST /api/uploads to /api/uploads/ (a trailing
slash) because api/uploads/ exists as a real directory, silently
dropping the multipart body on every image upload across the whole
app. Fixed via DirectorySlash Off in .htaccess.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-06 17:04:46 +02:00