---
title: FileSetInput - GraphQL Admin
description: The input fields required to create or update a file object.
api_version: unstable
api_name: admin
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/FileSetInput
  md: >-
    https://shopify.dev/docs/api/admin-graphql/unstable/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/unstable/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/unstable/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/unstable/enums/FileCreateInputDuplicateResolutionMode)

  Default:APPEND\_UUID

  How to handle if filename is already in use.

* filename

  [String](https://shopify.dev/docs/api/admin-graphql/unstable/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/unstable/scalars/ID)

  The ID of an existing file.

* original​Source

  [String](https://shopify.dev/docs/api/admin-graphql/unstable/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/unstable/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/unstable/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/unstable/input-objects/ProductSetInput#fields-files)
* [Product​Variant​Set​Input.file](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/ProductVariantSetInput#fields-file)
