Skip to main content
POST

Behavior

Any existing file at the same path is overwritten. Files over 8 MiB are rejected. Only ~/Downloads is writable, while the cloud browser runs. Tell the agent where the file is, for example with a message: “Upload ~/Downloads/cv.pdf in the application form.”

Path parameters

string
required
The agent session ID, or the browser session ID from its RunnerSessionEvent.

Request body

string
required
Destination path. Absolute, or relative to the browser’s home (~/Downloads/cv.pdf).
string
required
The file’s bytes, base64-encoded.

Response

200 with the written file.
string
The written file’s resolved path.
integer
Bytes written.
Tell the agent where the file is, for example with a message: “Upload ~/Downloads/cv.pdf in the application form.”

Errors