ASSET_TYPE
The function ASSET_TYPE takes a Detailed Asset and returns the mime type of the Asset.
This function takes a Detailed Asset as input. It returns a String containing the mime type of the Asset, such as “image/jpeg” or “text/plain”.)
Declaration
Parameters
detailed_asset (required, type: Detailed Asset) Any Detailed Asset. Note that a Detailed Asset is a subcategory of an Asset, and that the ASSET_TYPE function will not accept a general Asset as input, only a Detailed Asset.
Return Values
type(type: string)
The MIME type of the Detailed Asset, which can be text, image, or any other valid type. Here is a table of supported data types:
Examples
Assume the example has access to the following Detailed Asset, detailed_asset:
The following example takes the Detailed Asset defined above and returns its MIME type. Note that this matches the value of the type property given above:
Last updated