{"title":"Medium - Liquid Object Reference","slug":"medium-liquid-object-reference","url":"https://support.storeconnect.com/articles/medium-liquid-object-reference","url_markdown":"https://support.storeconnect.com/articles/medium-liquid-object-reference.md","subtitle":null,"summary":"The Medium object contains information about a medium that has been uploaded via the CMS.","type":"Developer_Documentation","video_url":"","keywords":"liquid, objects, Medium, template, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nThe Medium object contains information about a medium that has been uploaded via the CMS.\n\n:::note\nThis object supports custom data via the `data` attribute.\n:::\n\n## Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `alt_text` | String | Returns the value of the Alt Text attribute |\n| `description` | String | Returns the value of the Description attribute |\n| `document` | [Document](document-liquid-object-reference) | Returns a Document object for this Medium if the file_type is 'document' |\n| `document?` | Boolean | Returns true if this Image is a document |\n| `download_url` | String | Returns a url for this Medium that will trigger a file download in the browser |\n| `file` | [File](file-liquid-object-reference) | Returns a File object for this Medium if the file_type is 'file' |\n| `file_type` | String | Returns the value of the File Type attribute |\n| `file?` | Boolean | Returns true if this Image is a file |\n| `id` | String | Returns the unique id for this Medium |\n| `image` | [Image](image-liquid-object-reference) | Returns an Image object for this Medium if the file_type is 'image' |\n| `image?` | Boolean | Returns true if this Image is an image |\n| `name` | String | Returns the value of the Name attribute |\n| `url` | String | Returns the complete url for this Medium |\n| `video` | [Video](video-liquid-object-reference) | Returns a Video object for this Medium if the file_type is 'video' |\n| `video?` | Boolean | Returns true if this Image is a video |\n\n## Available on\n\n- [ContentBlock - Liquid Object Reference](content-block-liquid-object-reference) — `medium`\n- [Global - Liquid Object Reference](global-liquid-object-reference) — `all_media`\n- [Product - Liquid Object Reference](product-liquid-object-reference) — `media`, `variant_media`\n- [StockLocation - Liquid Object Reference](stock-location-liquid-object-reference) — `logo`"}