addMimeType

fun addMimeType(contentType: String, extensions: List<String>)(source)

Add mapping from mime types to filename extensions.

These mappings will be applied to the DocumentManager.mimetypesFileTypeMap at build time. The extensions should not include the leading ".": listOf("txt", "text") not listOf(".txt", ".text").