Error code
Not a type of file Coho stores
Coho reads a file's type from its bytes, not its name or the type you declared, and this kind of file is not one it stores.
- Code
ASSET_TYPE_NOT_ALLOWED- Management API
- 400
What to do
Upload PNG, JPEG, GIF, WebP, AVIF, HEIC, SVG, PDF, MP3, WAV, MP4, QuickTime, or WebM.
The response
Every refusal is an application/problem+json document. Its detail says what went wrong in that request; its type is this page.
{
"code": "ASSET_TYPE_NOT_ALLOWED",
"type": "https://coho-cms.com/errors/asset-type-not-allowed",
"title": "Not a type of file Coho stores",
"status": 400,
"detail": "What went wrong in this request, in a sentence.",
"instance": "/v1/projects/…"
}
Every code
The error codes, in a table with a filter.