Upload File
sdnext_uploadUpload base64-encoded files to the SD.Next server, storing them for later use in image generation and processing tasks.
Instructions
Upload a file to the SD.Next server (POST /sdapi/v1/upload, multipart form). Files land in the system temp dir (or relative to datadir when path is given). The server accepts "upload:" refs in image fields afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | application/octet-stream | |
| path | No | Target dir relative to SD.Next datadir (must exist); empty = system temp. | |
| filename | Yes | Client file name. | |
| overwrite | No | Overwrite if the file already exists. | |
| content_base64 | Yes | File content as base64. |