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" */

 +31 (0)20 240 21 20       

Videos and images courtesy of WEM Modeler. © 2019. WEM Modeler.
SitemapPrivacy - Terms - Company

 +31 (0)20 240 21 20       


Videos and images courtesy of WEM Modeler.
© 2019 WEM Modeler.
SitemapPrivacy - Terms - Company