The generic_file object

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

Returns the ID of the generic file.


Returns the type of the object (generic_file).


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


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