Description:

This processor attempts to identify the MIME type used for a FlowFile. If the MIME type can be identified, an attribute with the name mime.type is added to the FlowFile, and its value is the detected MIME type. Some MIME types require the processor to read a significant amount of data; for these MIME types, their identification is optional. (See the properties Identify ZIP and Identify TAR.) The algorithm may have to read the entire contents of a file for each type of identification. If the MIME Type cannot be determined, its mime.type attribute will be set to application/octet-stream .

The following MIME Types are detected:

Modifies Attributes:

Attribute Name Description
mime.type This Processor sets the FlowFile's mime.type attribute to the detected MIME Type. If unable to detect the MIME Type, the attribute's value will be set to application/octet-stream.