package bogue

  1. Overview
  2. Docs

Module File.MimeSource

Mimetype information

Sourceval type_string : string -> string

type_string filename returns the mimetype string of filename, obtained by inspecting only the filename extension (no inspection of the file is done), using this table. For instance: "image/png".

The function returns "" if no mimetype is found.