# DISALLOWED_FILE_TYPE

This file type is not allowed.

- **HTTP class:** 415
- **Retryable:** no

## What happened

The file's type isn't hosted: an extension outside the allowed list, an archive, video or audio, or an SVG with scripts.

## Fix

Drop the file, convert it to an allowed type, or remove the scripts from the SVG. The allowed extensions are in the `carnival_deploy` description. Embed video and audio from YouTube or Vimeo.

## What to tell the user

If it was the user's video or audio, explain that it has to be embedded from YouTube or Vimeo.

## Agent hint

The exact `error.hint` text; Carnival fills each `<…>` for the call.

```text
<path>: this file type is not allowed (see the allowed types in the carnival_deploy description). SVGs must not contain scripts. Video and audio aren't hosted; embed them from YouTube or Vimeo.
```

## Related

- [`SERVER_CODE_NOT_ALLOWED`](https://carnival-staging.dev/docs/errors/SERVER_CODE_NOT_ALLOWED.md): Server code or build configuration is not allowed.
- [`INVALID_ENCODING`](https://carnival-staging.dev/docs/errors/INVALID_ENCODING.md): A file could not be decoded.
- [`FILE_TOO_LARGE`](https://carnival-staging.dev/docs/errors/FILE_TOO_LARGE.md): A file is too large.

All error codes: [error codes](https://carnival-staging.dev/docs/errors.md)
