File
Requires access scope, access scope, access scope, access scope, access scope, access scope or access scope.
A file interface.
Anchor to FieldsFields
- alt (String)
- createdAt (DateTime!)
- fileErrors ([FileError!]!)
- fileStatus (FileStatus!)
- id (ID!)
- preview (MediaPreviewImage)
- updatedAt (DateTime!)
- •String
A word or phrase to describe the contents or the function of a file.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was created.
- Anchor to fileErrorsfile•[File
Errors Error!]! non-null Any errors that have occurred on the file.
- Anchor to fileStatusfile•File
Status Status! non-null The status of the file.
- •ID!non-null
A globally-unique ID.
- Anchor to previewpreview•Media
Preview Image The preview image for the media.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was last updated.
Anchor to Types implemented inTypes implemented in
- ExternalVideo (ExternalVideo)
- GenericFile (GenericFile)
- MediaImage (MediaImage)
- Model3d (Model3d)
- Video (Video)
- •OBJECT
Represents a video hosted outside of Shopify.
- •OBJECT
Represents any file other than HTML.
- •OBJECT
The
object represents an image hosted on Shopify's content delivery network (CDN). Shopify CDN is a content system that serves as the primary way to store, manage, and deliver visual content for products, variants, and other resources across the Shopify platform.The
object provides information to:- Store and display product and variant images across online stores, admin interfaces, and mobile apps.
- Retrieve visual branding elements, including logos, banners, favicons, and background images in checkout flows.
- Retrieve signed URLs for secure, time-limited access to original image files.
Each
object provides both the processed image data (with automatic optimization and CDN delivery) and access to the original source file. The image processing is handled asynchronously, so images might not be immediately available after upload. Thestatusfield indicates when processing is complete and the image is ready for use.The
object implements theMediainterface alongside other media types, like videos and 3D models.Learn about managing media for products, product variants, and asynchronous media management.
- •OBJECT
Represents a Shopify hosted 3D model.
- •OBJECT
Represents a Shopify hosted video.