About this endpoint
What it does
Detects the true file type of an uploaded file by inspecting its binary contents and returns metadata describing the file. The response includes the filename, extension, MIME type, and a human-readable description.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary file content to inspect. |
Response
Returns a JSON object with filename, extension, mime_type, and description string fields. extension is nullable, while the other fields are non-null strings.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| filename | String | No | The detected filename. |
| extension | String | No | The detected file extension, or null when unavailable. |
| mime_type | String | No | The detected MIME type. |
| description | String | No | A human-readable description of the detected file type. |