# Error: dangerous_file_type

> That kind of file cannot be attached

Source: https://docs.vlayers.ai/errors/dangerous_file_type

- HTTP status: 422
- Retry: No: fix the request first
- details: `filename`: the file that was refused.

## What happened

That kind of file cannot be attached.

## Why

A file you attached is a kind that can run code or hide what it is (a program, a script, a disguised extension), so it was not attached. `message` names the file.

## How to fix it

Send the content another way (a link, a PDF or an image), then send again.

## Example response

```json
{
  "error": "dangerous_file_type",
  "message": "That kind of file cannot be attached.",
  "requestId": "req-8f2c1d4b",
  "retryable": false,
  "docs": "https://docs.vlayers.ai/errors/dangerous_file_type"
}
```
