Skip to content
agent-cms

Components / cms-files

File manager

A storage bucket as it is, folder by folder, also files nobody uploaded through the CMS: move, download, share links and delete for several files at once. Needs `createCms({ media })`.

With the shadcn CLI

npx shadcn add https://agent-cms-docs.vercel.app/r/cms-files.json

With the agent-cms CLI

npx @mainsoft/agent-cms add cms-files
Live demo
Runs on a demo database that resets every 30 minutes.

Usage#

tsx
// app/admin/files/page.tsx
"use client";
import { CmsFiles } from "@/components/cms/cms-files";

export default function FilesPage() {
  return <CmsFiles />;
}

The sidebar shows "Files" to whoever may look around a store. What it does and who may do it is on the file manager page.

note

On npm from 0.10.0. In the demo, moving and deleting are off.