Skip to main content
POST
/
api
/
upload
Upload file (legacy)
curl --request POST \
  --url http://localhost:8091/api/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "data": {
    "url": "<string>",
    "filename": "<string>",
    "mimeType": "<string>",
    "size": 123
  }
}

Authorizations

Authorization
string
header
required

Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer

Body

multipart/form-data
file
file
required

File to upload (max 20MB)

Response

201 - application/json

File uploaded

data
object