Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Browser session ID
Body
multipart/form-data
Response
Files uploaded successfully
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
await client.browsers.fs.upload('id', {
files: [{ dest_path: '/J!', file: fs.createReadStream('path/to/file') }],
});This response does not have an example.Allows uploading single or multiple files to the remote filesystem.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
await client.browsers.fs.upload('id', {
files: [{ dest_path: '/J!', file: fs.createReadStream('path/to/file') }],
});This response does not have an example.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Browser session ID
Show child attributes
Files uploaded successfully