Description:
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 with the value being the MIME Type. If the MIME Type cannot be determined, the value will be set to ‘application/octet-stream’. In addition, the attribute mime.extension will be set if a common file extension for the MIME Type is known.
Tags:
compression, gzip, bzip2, zip, MIME, mime.type, file, identify
Properties:
This component has no required or optional properties.
Relationships:
Name | Description |
success | All FlowFiles are routed to success |
Reads Attributes:
None specified.
Writes Attributes:
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 |
The following MIME Types are detected:
- application/gzip
- application/bzip2
- application/flowfile-v3
- application/flowfile-v1 (requires Identify TAR be set to true)
- application/xml
- video/mp4
- video/x-m4v
- video/mp4a-latm
- video/quicktime
- video/mpeg
- audio/wav
- audio/mp3
- image/bmp
- image/png
- image/jpg
- image/gif
- image/tif
- application/vnd.ms-works
- application/msexcel
- application/mspowerpoint
- application/msaccess
- application/x-ms-wmv
- application/pdf
- application/x-rpm
- application/tar
- application/x-7z-compressed
- application/java-archive
- application/zip
- application/x-lzh
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page