stack

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

AdminTypes.FilesErrorCode enum

Possible error codes that can be returned by FilesUserError.

Signature:

export declare enum FilesErrorCode 

Enumeration Members

Member Value Description
AltValueLimitExceeded "ALT_VALUE_LIMIT_EXCEEDED" The alt value exceeds the maximum limit of 512 characters.
BlankSearch "BLANK_SEARCH" The search term must not be blank.
FileDoesNotExist "FILE_DOES_NOT_EXIST" File does not exist.
FileLocked "FILE_LOCKED" File has a pending operation.
FilenameAlreadyExists "FILENAME_ALREADY_EXISTS" The provided filename already exists.
Invalid "INVALID" The input value is invalid.
InvalidDuplicateModeForType "INVALID_DUPLICATE_MODE_FOR_TYPE" Duplicate resolution mode is not supported for this file type.
InvalidFilename "INVALID_FILENAME" The provided filename is invalid.
InvalidFilenameExtension "INVALID_FILENAME_EXTENSION" Invalid filename extension.
InvalidImageSourceUrl "INVALID_IMAGE_SOURCE_URL" Invalid image source url value provided.
InvalidQuery "INVALID_QUERY" Search query isn’t supported.
MismatchedFilenameAndOriginalSource "MISMATCHED_FILENAME_AND_ORIGINAL_SOURCE" Cannot create file with custom filename which does not match original source extension.
MissingArguments "MISSING_ARGUMENTS" At least one argument is required.
MissingFilenameForDuplicateModeReplace "MISSING_FILENAME_FOR_DUPLICATE_MODE_REPLACE" Duplicate resolution mode REPLACE cannot be used without specifying filename.
NonImageMediaPerShopLimitExceeded "NON_IMAGE_MEDIA_PER_SHOP_LIMIT_EXCEEDED" Exceeded the limit of non-image media per shop.
NonReadyState "NON_READY_STATE" The file is not in the READY state.
TooManyArguments "TOO_MANY_ARGUMENTS" Specify one argument: search, IDs, or deleteAll.
UnacceptableAsset "UNACCEPTABLE_ASSET" The file type is not supported.
UnacceptableTrialAsset "UNACCEPTABLE_TRIAL_ASSET" The file is not supported on trial accounts. Select a plan to upload this file.
UnacceptableUnverifiedTrialAsset "UNACCEPTABLE_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.
UnsupportedMediaTypeForFilenameUpdate "UNSUPPORTED_MEDIA_TYPE_FOR_FILENAME_UPDATE" Filename update is only supported on Image and GenericFile.