
xdmp.uriContentType( uri as String ) as String
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. |
xdmp.uriContentType("example.txt");
=> text/plain
xdmp.uriContentType("example.xml");
=> application/xml
xdmp.uriContentType("example.doc");
=> application/msword
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.