wwUtils::ContentTypeFromExtension

Returns a content type for a given extension. For example, PDF returns applications/pdf, DOC returns application/ms-word etc.

Values are taken from the local registry and any unknown types or types that don't have a content type associated with them return application/octet-stream.

ContentTypeFromExtension(lcExtension)

Return Value

Content type string.

Parameters

lcExtension
The file name extension without the . preceeding it.


See also:

Library wwUtils

© West Wind Technologies, 1996-2024 • Updated: 06/06/03
Comment or report problem with topic