Skip to content

Detect Type Node

Utils/Bytes

Reads the leading bytes to work out what kind of file a buffer holds

bytes_detect_typestd
Inputs1
Outputs4
Security exposure10/10
Packagestd

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
10/10High
PrivacyPotential sensitivity of processed data.
10/10High
PerformanceRuntime or resource pressure.
10/10High
GovernancePolicy, audit, or compliance impact.
10/10High
ReliabilityOperational stability considerations.
10/10High
CostExternal or compute cost impact.
10/10High

Input Pins

1

Bytes

Byte Array
bytes

Input Bytes

Output Pins

4

MIME Type

String
mime_type

Detected media type, empty when nothing matched

Extension

String
extension

Usual file extension for the detected type

Detected

Boolean
detected

True when a signature matched

Is Text

Boolean
is_text

True when the first kilobyte reads as UTF-8 text without null bytes

Node Info

Internal name
bytes_detect_type
Category
Utils/Bytes