LassoScript Utility
Basics Browse Detail

[MIME_Type]

Tag Link [MIME_Type] Category Utility
Type Substitution Source Available No
Support Preferred Version 8.5.5
Change New Data Source Any
Output Type String Security None
Implementation LassoScript Sets Lasso 8.5

Description

[MIME_Type] will return the MIME type for a file extension. The tag accepts a file name or a file extension. For example [MIME_Type: myfile.gif'] will return image.gif. The MIME types are adapated from the Apache mime.types file Based on data from the Internet media type registry at http://www.iana.org/assignments/media-types/.

Syntax

[MIME_Type: 'myfile.gif']

[MIME_Type: 'gif']

Parameters

Required Parameters
File Name A file name or file suffix.

Change Notes

This tag was introduced in Lasso 8.5.5.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.