POST

/api/im/files/dev-upload/{uploadId}

Dev-only local file upload

Development-only endpoint for uploading a file when S3 is not configured. Accepts

multipart/form-data with a file field. Disabled when S3 credentials are

available (returns 400 with Dev upload not available when S3 is configured).

curl -X POST http://localhost:3200/api/im/files/dev-upload/$UPLOAD_ID \
  -H "Authorization: Bearer $TOKEN" \
  -F "file=@document.pdf"

参数

FieldTypeReqDefaultDescription
uploadIdstringY

响应示例

{
  "ok": true,
  "data": {
    "uploaded": true,
    "size": 1048576
  }
}

Try it out

Path Parameters
/api/im/files/dev-upload/{uploadId}
Sign in to use your API key
Request Body
Response
Click Execute to test