Anchor to GenericFileGeneric
objectGeneric File
Requires access scope.
Any file that doesn't fit into a designated type like image or video. For example, a PDF or JSON document. Use this object to manage files in a merchant's store.
Generic files are commonly referenced through file reference metafields and returned as part of the union.
Includes the file's URL, MIME type, size in bytes, and an optional preview image.
Anchor to FieldsFields
- alt (String)
- id (ID!)
- mimeType (String)
- originalFileSize (Int)
- previewImage (Image)
- url (URL)
- •String
A word or phrase to indicate the contents of a file.
- •ID!non-null
A globally-unique ID.
- Anchor to mimeTypemime•String
Type The MIME type of the file.
- Anchor to originalFileSizeoriginal•Int
File Size The size of the original file in bytes.
- Anchor to previewImagepreview•Image
Image The preview image for the file.
- •URL
The URL of the file.
Was this section helpful?