mimekit-ts - v1.0.0
    Preparing search index...

    Function getMimeType

    • Get the MIME-type for the given file name based on its extension. C#: MimeTypes.GetMimeType.

      Parameters

      • fileName: string

        The file name.

      Returns string

      The MIME type, or application/octet-stream when the extension is unknown.

      fileName is null or undefined.