Upload a file (or batch of files)
Files connector
Upload a file (or batch of files)
Uploads one or more files to the files connector. Each file is:
- Validated (extension allowlist + 50 MB per-file cap + MIME-type sniff)
- Stored in MinIO under the
knowledgeSources/prefix - Converted to Markdown (Firecrawl for office/PDF, Cortex vision LLM for images, direct read for .md/.txt)
- Saved as a
knowledge_sourcesrow withtype='file' - Triggers a
knowledgeSourceChangedevent for Cortex indexing
Single-file mode (backward-compatible): send name="file" — response is {success, id}.
Batch mode: send name="files[]" with multiple parts — response is {successful: [{id, name}], failed: [{name, error}]}. Max 20 files and 50 MB total per request. Files are processed in parallel via Amp futures. Per-file errors land in failed without aborting the batch.
POST
Upload a file (or batch of files)
Autorisierungen
JWT-based authentication
Body
multipart/form-data