Article Files & Per-Article Storage
Per-article file management with browsable folders on disk, a redesigned article edit page with persistent sidebar, and a new MCP tool for AI file access — now at 786 tests across 80 files.
Article Files
- Per-article folders at
~/Documents/ContentMK/files/— each article gets its own directory organized by site, with human-readable folder names ({wp_post_id}-{slug}for synced articles,_local-{id}-{slug}for local ones) - File browser UI in the article edit sidebar — browse, upload, rename, move, and delete files without leaving the editor
- Drag-and-drop upload via the Files tab, or click to open a file picker. Files are automatically classified and routed to the correct subfolder.
- 3-layer smart classification — uploads are auto-classified by name, type, and extension, then renamed with a date stamp and article context (e.g.,
report.csvbecomes2026-02-26-best-hiking-boots-report.csv). Optional AI fallback for files the rules can’t classify. - Rich toast UX — each upload shows a toast with the placement result, with undo, move, and rename actions inline
- Subfolders —
screenshots/,photos/,imports/, andexports/built in, with premium modules able to register their own (e.g.,semrush/for SEO reports,ahrefs/for backlink data) - Auto-generated files from WordPress sync —
article.html(rendered content) andwp-blocks.html(raw block markup) written automatically on each sync, marked with an “auto” badge, protected from accidental deletion - Any file type accepted — images, PDFs, spreadsheets, code snippets, handoff documents, and more
- OS trash for user deletes — deleted files go to macOS Trash or Windows Recycle Bin for easy recovery
- Lazy folder rename — when a local article gains a
wp_post_idafter sync, the folder is renamed in place on next access without user action
Article Edit Page Redesign
- Two-column layout with a persistent right sidebar that stays visible while editing article details and SEO fields
- Three sidebar tabs — Files (file browser and upload), Notes (WordPress block-level notes from the WP Notes module), and Schema (structured data settings from Basic SEO)
- Resizable divider between the main column and sidebar, with width remembered between sessions
- Extracted sidebar content components —
FilesSidebarContentandNotesSidebarContentkeep the sidebar tab contents modular and reusable
MCP Server Update
- New tool:
list_article_files— returns the file tree for any article, with SiteFilter enforcement for AI access control - 13 tools total (up from 12) plus 4 resources, all respecting per-site AI scoping
Migration 011
article_filestable — tracks every file witharticle_id,site_id,filename,subfolder,file_type,file_size,content_hash,source(user or wp-sync),source_module, andis_autoflag. Unique constraint on(article_id, subfolder, filename). Cascading deletes tied to botharticlesandsites.- Schema version 11