Keep uploaded images in folders by what they're for

logos/ for logo and icon fields, thumbnails/ for previews the site
saves (link previews, Drive first pages), images/ for everything else;
each small copy beside its image. Images from before folders are
sorted once at boot by their uses, and every record naming them is
rewritten in one transaction after the files move.

The Media page and image pickers get a tab per folder; a picker opens
on its field's folder and uploads there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 22:29:22 -05:00
parent 4b249c9e52
commit 9854da965e
14 changed files with 283 additions and 51 deletions

View file

@ -80,6 +80,7 @@ export const siteSettings = {
path: "favicon",
label: "Favicon",
widget: "image",
folder: "logos",
resolve: mediaUrl,
full: true,
help: "The browser-tab icon: a square PNG (512px) or an SVG. Keep original when uploading an SVG.",
@ -88,6 +89,7 @@ export const siteSettings = {
path: "apple_touch_icon",
label: "Home-screen icon",
widget: "image",
folder: "logos",
resolve: mediaUrl,
full: true,
help: "For iPhones saving the site to their home screen: a square PNG, 180px, no transparency.",