- Categories:
File functions (AI Functions)
FL_GET_FILE_TYPE¶
Returns the file type (modality) of a FILE. This is a more general classification than the content type (see FL_GET_CONTENT_TYPE).
Syntax¶
Use one of the following:
FL_GET_FILE_TYPE( <file_expression> ) FL_GET_FILE_TYPE( <variant_expression> )
Arguments¶
file_expressionThe argument must be an expression of type FILE.
variant_expressionThe argument must be an OBJECT representing a FILE.
Returns¶
One of following values as a VARCHAR:
documentvideoaudioimagecompressedunknown
Tip
To test if a file is of a particular type, use one of the FL_IS functions:
Examples¶
Example using an input FILE:
Example using an input OBJECT: