DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsMedia & FilesMedia Library
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Upload FilesImage URLs & CDNMedia LibraryFile Size Limits
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Media Library

Browse and manage uploaded media.

Updated March 29, 2026

On this page
  • Overview
  • Accessing the Library
  • Fetching Media Programmatically
  • Use Cases
  • Next Steps

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

typescript
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
PreviousImage URLs & CDNNextFile Size Limits

On this page

  • Overview
  • Accessing the Library
  • Fetching Media Programmatically
  • Use Cases
  • Next Steps