Upload file bytes as a document
Context
Upload file bytes as a document
Ingest a file whose bytes come from the client. The viewer’s Upload button uses
this, because a browser file dialog yields file bytes without a usable path. The
document is listed, graphed, and indexed like any other. Its provenance is upload://<filename>,
so re-uploading the same name replaces it and identical bytes are a no-op. Unlike
path-linked documents there is no disk file to open or change-track; prefer
/context/add when the daemon can read the file itself. Body limit ~48MB
(base64 inflates by a third, so roughly a 36MB file).
POST
Upload file bytes as a document
Body
application/json