Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

enum

Possible error codes that can be returned by FilesUserError.

Anchor to ALT_VALUE_LIMIT_EXCEEDEDALT_VALUE_LIMIT_EXCEEDED
•

The alt value exceeds the maximum limit of 512 characters.

•

The search term must not be blank.

•

File does not exist.

•

File has a pending operation.

Anchor to FILENAME_ALREADY_EXISTSFILENAME_ALREADY_EXISTS
•

The provided filename already exists.

•

The input value is invalid.

Anchor to INVALID_DUPLICATE_MODE_FOR_TYPEINVALID_DUPLICATE_MODE_FOR_TYPE
•

Duplicate resolution mode is not supported for this file type.

•

The provided filename is invalid.

Anchor to INVALID_FILENAME_EXTENSIONINVALID_FILENAME_EXTENSION
•

Invalid filename extension.

Anchor to INVALID_IMAGE_SOURCE_URLINVALID_IMAGE_SOURCE_URL
•

Invalid image source url value provided.

•

Search query isn't supported.

Anchor to MISMATCHED_FILENAME_AND_ORIGINAL_SOURCEMISMATCHED_FILENAME_AND_ORIGINAL_SOURCE
•

Cannot create file with custom filename which does not match original source extension.

•

At least one argument is required.

Anchor to MISSING_FILENAME_FOR_DUPLICATE_MODE_REPLACEMISSING_FILENAME_FOR_DUPLICATE_MODE_REPLACE
•

Duplicate resolution mode REPLACE cannot be used without specifying filename.

Anchor to NON_IMAGE_MEDIA_PER_SHOP_LIMIT_EXCEEDEDNON_IMAGE_MEDIA_PER_SHOP_LIMIT_EXCEEDED
•

Exceeded the limit of non-image media per shop.

•

The file is not in the READY state.

Anchor to PRODUCT_MEDIA_LIMIT_EXCEEDEDPRODUCT_MEDIA_LIMIT_EXCEEDED
•

Exceeded the limit of media per product.

•

One or more associated products are suspended.

•

Specify one argument: search, IDs, or deleteAll.

•

The file type is not supported.

Anchor to UNACCEPTABLE_TRIAL_ASSETUNACCEPTABLE_TRIAL_ASSET
•

The file is not supported on trial accounts. Select a plan to upload this file.

Anchor to UNACCEPTABLE_UNVERIFIED_TRIAL_ASSETUNACCEPTABLE_UNVERIFIED_TRIAL_ASSET
•

The file is not supported on trial accounts that have not validated their email. Either select a plan or verify the shop owner email to upload this file.

Anchor to UNSUPPORTED_MEDIA_TYPE_FOR_FILENAME_UPDATEUNSUPPORTED_MEDIA_TYPE_FOR_FILENAME_UPDATE
•

Filename update is only supported on Image and GenericFile.


Was this section helpful?


Was this section helpful?