Skip to main content
POST
/
v1
/
browsers
/
{id}
/
files
Stage a browser file
curl --request POST \
  --url https://api.webcompute.dev/v1/browsers/{id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "base64": "<string>",
  "mimeType": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
name
string
required

Original file name to expose to the browser upload target

base64
string
required

Base64-encoded file bytes to stage into browser-controlled storage

mimeType
string

Optional MIME type for upload target accept checks

Response

201

File staged