Upload file bytes directly, local development only
POST
/api/v1/files/upload-local/{uploadId}
const url = 'https://app.avera.io/api/v1/files/upload-local/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"file":"binary"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.avera.io/api/v1/files/upload-local/example \ --header 'Content-Type: application/json' \ --data '{ "file": "binary" }'Available only when the storage provider is local, which cannot serve presigned URLs.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”uploadId
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
file
required
string format: binary
Example generated
{ "file": "binary"}Responses
Section titled “Responses”OK
Media type*/*
object
key
additional properties
string