stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > FileCreateInput

AdminTypes.FileCreateInput interface

The input fields that are required to create a file object.

Signature:

export interface FileCreateInput 

Properties

Property Modifiers Type Description
alt?   InputMaybe<Scalars[‘String’][‘input’]> (Optional) The alternative text description of the file.
contentType?   InputMaybe<FileContentType | `${FileContentType}`> (Optional) The file content type. If omitted, then Shopify will attempt to determine the content type during file processing.
duplicateResolutionMode?   InputMaybe<FileCreateInputDuplicateResolutionMode | `${FileCreateInputDuplicateResolutionMode}`> (Optional) How to handle if filename is already in use.
filename?   InputMaybe<Scalars[‘String’][‘input’]> (Optional) When provided, the file will be created with the given filename, otherwise the filename in the originalSource will be used.
originalSource   Scalars[‘String’][‘input’] An external URL (for images only) or a [staged upload URL](https://shopify.dev/api/admin-graphql/latest/mutations/stageduploadscreate).