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.jsonWith the agent-cms CLI
npx @mainsoft/agent-cms add cms-filesLive demoRuns on a demo database that resets every 30 minutes.
Usage#
// 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.