Start a direct file upload
livereacting_upload_fileStart uploading a file from the machine you run on (or the customer's) into the media library. This server cannot read local files, so the upload has three steps: (1) call this tool with the file name, type and exact size in bytes; (2) send each part with an HTTP PUT to its URL, for example by running each returned command with FILE set to the local path (each prints the part's HTTP status) -- a part must be exactly its size in bytes, or storage refuses it with 403; (3) call livereacting_complete_upload with the uploadToken. A file up to 256 MiB is one part. If you cannot run commands or make HTTP PUT requests, you cannot upload; ask for a public link and use livereacting_import_from_url instead. The extension must match the type (video: .mp4 .m4v .mov .flv .webm .ogv .3gp .wmv .avi .mkv; audio: .mp3 .m4a .wav; image: .jpg .jpeg .png .gif .bmp .svg .heic .webp). The size must fit the plan's max file size, and a video is refused once storage is full. The part URLs and the token expire after 3 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name shown in the library, with its extension, for example intro.mp4. | |
| size | Yes | Exact file size in bytes, for example from `wc -c < FILE`. | |
| type | Yes | What kind of media this is. A video playlist layer can only use video files. | |
| folderId | No | Put the file in this folder. Omit to upload to the root of the library. |