Function getMimeType

  • Returns the MIME type corresponding to a filename extension.

    Parameters

    • fileExtension: string

      the extension of the filename.

    Returns string

    The corresponding MIME type.