Media Library
Browse and manage uploaded media.
Updated
On this page
Overview
The Media Library in the dashboard lets you manage all uploaded files. Organize files into folders, add alt text, and get URLs for use in your storefront.
Accessing the Library
Go to Media in the dashboard sidebar to browse all uploaded files.
Fetching Media Programmatically
import dash from "@/lib/dash"
// Get a specific file by name
const { file } = await dash.media.getByName("logo-dark")
// Get all files in a folder
const { items } = await dash.media.getFolder("homepage", {
metadata: { type: "banner" }, // optional: filter by metadata
})
Use Cases
- Banners — Hero images, promotional banners
- Logos — Brand logos, partner logos
- Icons — Category icons, feature icons
- Documents — PDFs, certificates
Next Steps
- Upload Files — Uploading new files
- Image URLs & CDN — CDN delivery