Table of Contents

Class IngestionMediaTypes

Namespace
Qavren.Edge.Ingestion
Assembly
Qavren.Edge.Ingestion.dll

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: .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.