Serve downloadable PDFs from a PocketBase documents collection #67

Merged
Tom merged 1 commits from content/documents-downloads into main 2026-10-12 22:17:56 +02:00
Owner
  • New collection "documents" (title, slug, file, category, order, public);
    editors upload PDFs in the admin, no developer or redeploy needed
  • The app serves each file at /dokumente/.pdf, a URL that survives a
    new upload (PocketBase's own file name gets a random suffix)
  • New "documents" embed lists them as file cards, grouped by category;
    /downloads uses it
  • List/view rules are "public = true", so a draft PDF is not reachable through
    the PocketBase API either
  • Dev seed adds example documents with generated PDFs and fixes the
    const reassignment that broke seeding a fresh volume
  • Docs: editor guide, architecture, and the manual production setup steps

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

- New collection "documents" (title, slug, file, category, order, public); editors upload PDFs in the admin, no developer or redeploy needed - The app serves each file at /dokumente/<slug>.pdf, a URL that survives a new upload (PocketBase's own file name gets a random suffix) - New "documents" embed lists them as file cards, grouped by category; /downloads uses it - List/view rules are "public = true", so a draft PDF is not reachable through the PocketBase API either - Dev seed adds example documents with generated PDFs and fixes the const reassignment that broke seeding a fresh volume - Docs: editor guide, architecture, and the manual production setup steps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tom added 1 commit 2026-10-12 22:17:40 +02:00
- New collection "documents" (title, slug, file, category, order, public);
  editors upload PDFs in the admin, no developer or redeploy needed
- The app serves each file at /dokumente/<slug>.pdf, a URL that survives a
  new upload (PocketBase's own file name gets a random suffix)
- New "documents" embed lists them as file cards, grouped by category;
  /downloads uses it
- List/view rules are "public = true", so a draft PDF is not reachable through
  the PocketBase API either
- Dev seed adds example documents with generated PDFs and fixes the
  const reassignment that broke seeding a fresh volume
- Docs: editor guide, architecture, and the manual production setup steps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tom merged commit 060bb6e0ef into main 2026-10-12 22:17:56 +02:00
Tom deleted branch content/documents-downloads 2026-10-12 22:17:57 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tom/Elternbeirat#67