aliyun v1.0.7 Aliyun.OSS.Mime
Maps MIME types to file extensions and vice versa.
Link to this section Summary
Functions
Returns the extensions associated with a MIME type. iex> MIME.Types.extensions(“text/html”) [“html”, “htm”]
Guesses the MIME type based on the path’s extension. iex> MIME.Types.path(“index.html”) “text/html”
Returns the MIME type associated with a file extension. iex> MIME.Types.type(“txt”) “text/plain”
Returns whether a MIME type is registered. iex> MIME.Types.valid?(“text/plain”) true
Link to this section Functions
Returns the extensions associated with a MIME type. iex> MIME.Types.extensions(“text/html”) [“html”, “htm”]
Guesses the MIME type based on the path’s extension. iex> MIME.Types.path(“index.html”) “text/html”
Returns the MIME type associated with a file extension. iex> MIME.Types.type(“txt”) “text/plain”
Returns whether a MIME type is registered. iex> MIME.Types.valid?(“text/plain”) true