--- title: GenericFile - Customer API description: >- The generic file resource lets you manage files in a merchant's store. Generic files include any file that doesn't fit into a designated type such as image or video. Example: PDF, JSON. api_version: 2026-01 api_name: customer type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/customer/latest/objects/GenericFile' md: 'https://shopify.dev/docs/api/customer/latest/objects/GenericFile.md' --- # Generic​File object The generic file resource lets you manage files in a merchant's store. Generic files include any file that doesn't fit into a designated type such as image or video. Example: PDF, JSON. ## Fields * alt [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A word or phrase to indicate the contents of a file. * id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/customer/latest/enums/MediaContentType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The media content type. * mime​Type [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The MIME type of the file. * original​File​Size [Int](https://shopify.dev/docs/api/customer/latest/scalars/Int) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The size of the original file in bytes. * preview​Image [Image](https://shopify.dev/docs/api/customer/latest/objects/Image) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The preview image for the media. * url [URL](https://shopify.dev/docs/api/customer/latest/scalars/URL) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The URL of the file. *** ## Map ### Possible type in * [Metafield​Reference](https://shopify.dev/docs/api/customer/latest/unions/MetafieldReference) *** ## Interfaces * [Media](https://shopify.dev/docs/api/customer/latest/interfaces/Media) interface *** ## GenericFile Implements ### Implements * [Media](https://shopify.dev/docs/api/customer/latest/interfaces/Media)