The generic_file object

The generic_file object can be returned when a metafield has a file_reference definition. If the file_reference is not an image of type JPEG, PNG, or GIF, then it will return a generic_file.

generic_file.id

Returns the ID of the generic file.

generic_file.media_type

Returns the type of the object (generic_file).

generic_file.preview_image

Returns a preview image for the generic file. Usually this will be a square icon representing the file type.

generic_file.url

Returns the absolute path of the generic file on Shopify's Content Delivery Network (CDN).

Input

Output