Skip to main content

media

An image or video upload field. The merchant can upload or select media from the store's media library. Returns a CDN URL string.

Properties

PropertyTypeRequiredDescription
type"media"YesField type identifier
labelstringYesLabel shown in the builder
defaultstringNoDefault value (empty string if omitted)

Usage

{
"hero_media": {
"type": "media",
"label": "Image or Video",
"default": ""
}
}
tip

Always wrap media in an {% if %} check since the field may be empty if the merchant hasn't uploaded anything yet.

Interactive Preview

Interactive Preview
Click to uploadPNG, JPG, WEBP, MP4
Live Output
{
  "hero_media": ""
}