mimeTheMIMETypeOfExtension

Typefunction
Dictionarylibrary.mime
LibraryMIME Library
Syntax
mimeTheMIMETypeOfExtension(<pExtension>)
Associationscom.livecode.library.mime
Summary

Determine the MIME type for a file extension

Parameters
NameTypeDescription
pExtension

A file extension

Example
put "Content-Type:" && mimeTheMIMETypeOfExtension("xls") & crlf after tHeaders
Values
NameTypeDescription
return

A mime type for the given file extension.

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.