FL_GET_CONTENT_TYPE

functionsupportedData loading & unloading

docs.snowflake.com ↗

File functions

Returns the content type (also known as the MIME type) of a FILE.

Syntax

Use one of the following

FL_GET_CONTENT_TYPE( <file_expression> )

FL_GET_CONTENT_TYPE( <variant_expression> )

Parameters

NameRequiredDescription
file_expressionrequiredThe argument must be an expression of type FILE.
variant_expressionrequiredThe argument must be an OBJECT representing a FILE.

Returns

Aa VARCHAR value with the MIME type of the file, for example 'image/png' for a PNG image file.