MIME Type Detector

Go to Product

This node detects the MIME type (aka. “media type” or “content type”) of given files or binary data by looking at the actual data (i.e. not the file extension).

For example, for a PNG image it will return image/png, for a PDF file it will return application/pdf.

Technically the MIME type detection works mostly with “magic patterns” which appear at the beginning of files and which can be used to deduce the file type. For example in case of PDFs, the magic pattern would be %PDF appearing at the beginning of the file.

Options

Input
The input column (string, binary, or file path) in the input table for which to detect the MIME types.

Input Ports

Icon
Input table with input data for which to detect the MIME type.

Output Ports

Icon
Table with appended MIME type.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.