--- title: FileSetInput - GraphQL Admin description: The input fields required to create or update a file object. api_version: 2025-10 api_name: admin type: input-object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/input-objects/FileSetInput md: https://shopify.dev/docs/api/admin-graphql/latest/input-objects/FileSetInput.md --- # File​Set​Input input\_object The input fields required to create or update a file object. ## Fields * alt [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The alt text description of the file for screen readers and accessibility. * content​Type [File​Content​Type](https://shopify.dev/docs/api/admin-graphql/latest/enums/FileContentType) The file content type. If omitted, then Shopify will attempt to determine the content type during file processing. * duplicate​Resolution​Mode [File​Create​Input​Duplicate​Resolution​Mode](https://shopify.dev/docs/api/admin-graphql/latest/enums/FileCreateInputDuplicateResolutionMode) Default:APPEND\_UUID How to handle if filename is already in use. * filename [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The name of the file. If provided, then the file is created with the specified filename. If not provided, then the filename from the `originalSource` is used. * id [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) The ID of an existing file. * original​Source [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) An external URL (for images only) or a [staged upload URL](https://shopify.dev/api/admin-graphql/latest/mutations/stageduploadscreate). *** ## Input objects using this input * [Product​Set​Input.files](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ProductSetInput#fields-files) INPUT OBJECT The input fields required to create or update a product via ProductSet mutation. * [Product​Variant​Set​Input.file](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ProductVariantSetInput#fields-file) INPUT OBJECT The input fields for specifying a product variant to create or update. *** ## Map ### Input objects using this input * [Product​Set​Input.files](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ProductSetInput#fields-files) * [Product​Variant​Set​Input.file](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ProductVariantSetInput#fields-file)