
admin.mimetype( name as String, extensions as String, format as String ) as element(mt.mimetype)
This function constructs a mimetype specification.
| Parameters | |
|---|---|
| name | The name of the mimetype. |
| extensions | The extension(s) for the mimetype. |
| format |
A valid format for the mimetype. Must be on of:
binary,xml, or text.
|
const admin = require('/MarkLogic/admin.xqy');
admin.mimetype("application/foo","foo bar","binary")
//returns the mimetype specification
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.