Tina Docs
Introduction
Overview
Introduction To TinaCMS
Getting Started
Using the Tina Editor
FAQ
Core Concepts
Content Modeling
Data Fetching
Visual Editing
Querying Content
Overview
Writing custom queries
Editing
Overview
Markdown & MDX
Block-based editing
Single Document Collections
Customizing Tina
Overview
Validation
Custom Field Components
Custom List Rendering
Format and Parse Input
Filename Customization
Before Submit function
Going To Production
Overview
Tina Cloud
Self-Hosted
Drafts
Overview
Draft Fields
Editorial Workflow
Guides
Overview
Framework Guides
Separate Content Repo
Querying Tina Content at Runtime
Internationalization
Migrating From Forestry
Further Reference
Overview
Config
Schema
The "tina" folder
The TinaCMS CLI
Media
Overview
Repo-based Media
External Media Providers
Search
Content API
Tina's edit state
The "tinaField" helper
Self-Hosted Components

TinaCMS provides multiple options for managing media.

media-manager-image

All of the media configuration is done in the defineConfig function under config.media.

Example:

export default defineConfig({
//...
schema: {
collections: [
// Array of collections
],
},
media: {
// Media config
tina: {
// Repo-based Media config
},
// function that loads the media store
loadCustomStore: async () => {},
},
//.. Other config
})
Note: Only Repo-based Media or an External Media Provider can be configured, but not both

Repo-based Media (default)

With the built-in repo-based media option, media is stored within the site's repository.

Read more about repo-based media here

External Media Providers

TinaCMS also supports pluggable external media providers.

Read more about the external media store implementation here

Video Tutorial

For those who prefer to learn from video, you can check out a snippet on media from our "TinaCMS Deep Dive" series.

Last Edited: June 29, 2022

Product

Showcase
TinaCloud
Introduction
How Tina Works
Roadmap

Resources

Blog
Examples
Support
Media

Whats New
TinaCMS
TinaCloud
Use Cases
Agencies
Documentation
Teams
Jamstack CMS
Benefits
MDX
Markdown
Git
Editorial Workflow
Customization
SEO
Comparisons
TinaCMS vs Storyblok
TinaCMS vs Sanity
TinaCMS vs DecapCMS
TinaCMS vs Contentful
TinaCMS vs Builder.io
TinaCMS vs Strapi
Integrations
Astro
Hugo
NextJS
Jekyll