Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp.uriContentType

xdmp.uriContentType(
   uri as String
) as String

Summary

Returns the content type of the given URI as matched in the mimetypes configuration. xdmp:content-type continues to work too.

Parameters
uri The document URI.

Example

  xdmp.uriContentType("example.txt");
  => text/plain

Example

  xdmp.uriContentType("example.xml");
  => application/xml

Example

  xdmp.uriContentType("example.doc");
  => application/msword

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.