Udon is under active development. Documentation not final.
udonudon
Storage

Upload a file

Upload a file. The destination is given by the `root` and `path` query parameters and the `name`; the raw file bytes are the request body. Requires the **admin** role.

POST
/api/storage/fs/upload

Authorization

udon_session<token>

In: cookie

Query Parameters

root*string

The file-browser root identifier.

path?string

The path relative to the root.

name*string

The file name.

overwrite?boolean

Replace an existing file of the same name.

Request Body

application/octet-stream

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/json

application/json

curl -X POST "https://example.com/api/storage/fs/upload?root=string&name=string" \  -H "Content-Type: application/octet-stream" \  -d 'string'
Empty

Ask AI

Answers from Udon's documentation.

Ask how to install Udon, run containers, or share folders.