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)
Content type string.
Parameters
lcExtension
The file name extension without the . preceeding it.
See also
Library wwUtils© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic