PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Validates the specified file.

Syntax

Smartsite SXML CopyCode image Copy Code
enum cms.asset.validatefile(string assetFolderName, locator fileName, string mode)

Parameters

Name Data Type Description
assetFolderName String The asset folder name.
fileName Locator The file name.
mode String The mode.

Return Value

Data Type Description
Enum
Enum values:
  • Valid
    The file is valid.
  • FileTypeNotSupported
    The file-type is not supported.
  • FileSizeLimitExceeded
    The maximum file size is exceeded.
SXML