Spanish Total.js
English
Documentation For AI agents
Contents

Errors and limits

The status codes and error texts of the upload API and its size limits.

.md GitHub
On this page

Errors come back as a JSON array with one object per error:

[{"error":"Not allowed"}]

Status codes

StatusAnswerCause
401[{"error":"401: Unauthorized"}]No token, or the token is wrong.
400[{"error":"Not allowed"}]The token lacks Upload files or the storage, or the storage does not exist.
400[{"error":"Invalid file name"}]Base64 upload without name.
400[{"error":"Invalid file type"}]Base64 upload whose file is not a data URI.
431(no JSON)The request is larger than the limit.
404A file link that does not point to a file.

See Token permissions to fix Not allowed.

Size limits

EndpointLargest request
POST /upload/{db}/, POST /files/{db}/100 MB
POST /base64/{db}/10 MB (the Base64 text, which is about a third larger than the file)

The limit is per request. To upload more data, send the files in several requests.

Made in Europe