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 |
[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
[MIME_Type: 'myfile.gif']
[MIME_Type: 'gif']
Required Parameters | |
---|---|
File Name | A file name or file suffix. |
This tag was introduced in Lasso 8.5.5.
See the Lasso 8 Language Guide for examples of how to use this tag.