The MimeType()
function checks the type of data that a file contains.
Syntax
MimeType(file)
Returns
A text that contains the mime type of a file.
Note: common media types are listed on wikipedia.
Parameters
file
– a file.
Examples
MimeType([PngImageFile]) /* "image/png" */
MimeType([PdfFile]) /* "application/pdf" */
MimeType([TextFile]) /* "text/txt" */
MimeType([CsvFile]) /* "text/csv" */
MimeType([WordFile]) /* "application/vnd.openxmlformats-officedocument.wordprocessingml.document" */