View Source Support types
The tables below show the support MIME Type and minimum number of bytes need to perform. If the length of data that is provided to the function is less than the minimum, the program will return unmatch immediately.
a-html-xml-pdf-postscript-or-utf-text-type-more-info
A html, xml, pdf, postscript or UTF text type (more info)
MIME Type | Minimum number of bytes need to perform | Note |
---|---|---|
text/html | 15 | |
text/xml | 5 | |
application/pdf | 5 | |
application/postscript | 11 | |
text/plain | 4 | UTF-16BE BOM, UTF-16LE BOM, and UTF-8 BOM text file. |
an-image-type-more-info
An image type (more info)
MIME Type | Minimum number of bytes need to perform | Note |
---|---|---|
x-icon | 4 | |
x-icon | 4 | |
image/bmp | 2 | |
image/gif | 6 | |
image/gif | 6 | |
image/webp | 14 | |
image/png | 8 | |
image/jpeg | 3 |
an-audio-or-video-type-more-info
An audio or video type (more info)
Currently, this application does not support sniffing A MP3 without id3 type
MIME Type | Minimum number of bytes need to perform | Note |
---|---|---|
audio/aiff | 12 | |
audio/mpeg | 3 | |
application/ogg | 5 | |
audio/midi | 8 | |
video/avi | 12 | |
audio/wave | 12 | |
video/mp4 | >12 | how the algorithm work for mp4 |
*video/webm | *4 | only check first four bytes see Matching a WebM type. |
a-font-type-more-info
A font type (more info)
MIME Type | Minimum number of bytes need to perform | Note |
---|---|---|
application/vnd.ms-fontobject | 36 | |
font/ttf | 4 | |
font/otf | 4 | |
font/collection | 4 | |
font/woff | 4 | |
font/woff2 | 4 |
an-archive-type-more-info
An archive type (more info)
MIME Type | Minimum number of bytes need to perform | Note |
---|---|---|
application/x-gzip | 3 | |
application/zip | 4 | |
application/x-rar-compressed | 7 |
other
Other
MIME Type | Minimum number of bytes need to perform | Note |
---|---|---|
text/plain | 0 | if content contains no binary data bytes |
application/octet-stream | 1 | if not match anything else |