Skip to main content

mimeTheMIMETypeOfExtension

Type

function

Summary

Determine the MIME type for a file extension

Syntax

mimeTheMIMETypeOfExtension(<pExtension>)

Description

The mime types listed are the default mime types in an Apache web server installation for a given file extension. If the file extension is not found then application/octet-stream will be returned.

Parameters

NameTypeDescription

pExtension

A file extension

Examples

put "Content-Type:" && mimeTheMIMETypeOfExtension("xls") & crlf after tHeaders