Class IngestionMediaTypes
Extension-to-media-type mapping for the formats SP3 ships. Used by spec 11.3's sample.
public static class IngestionMediaTypes
- Inheritance
-
IngestionMediaTypes
- Inherited Members
Fields
- Docx
Word Open XML:
.docx.
- Markdown
Markdown:
.md,.markdown.
PDF:
.pdf.
- PlainText
Plain text:
.txt,.log,.csv,.text.
Methods
- FromExtension(string)
Accepts a bare extension, a file name or a full path; matches the last dot-segment, ordinal-ignore-case. Returns "application/octet-stream" for anything unmapped, never null, so a caller can hand the result straight to MediaType.