---
title: "attachment_not_allowed: what it means and how to fix it · Hypamoon"
description: "HTTP 422. This attachment cannot be sent.csv) files as UTF-8 text."
url: https://hypamoon.com/docs/errors/attachment_not_allowed
---

**Start for free.** [Sign up](https://app.hypamoon.com/?mode=signup&utm_source=docs&utm_campaign=banner) without a card and connect your chat, or create a test key for the API. Going live with something real asks for a quick check of your company first.

[Errors](https://hypamoon.com/docs/errors)

# attachment\_not\_allowed

**Status**\
422

**Type**\
`https://hypamoon.com/docs/errors/attachment_not_allowed`

This attachment cannot be sent. Allowed are PDF, PNG, JPG, GIF and WebP, plus calendar (`.ics`), text (`.txt`) and CSV (`.csv`) files as UTF-8 text. The type is checked on the first bytes of the file, not only on its name, so the extension must match what the file really is. Never allowed: anything that runs or renders as a page (exe, js, html, svg, zip and the like), and a PDF with scripts, launch actions or embedded files. `index` says which attachment; `allowed` lists the extensions.

Hypamoon is the infrastructure your chat or agent builds on for a business. Hypamoon API, version 1.[hypamoon.com](https://hypamoon.com/)
