SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Asset → Upload Asset

AI-generated

Summary

Upload the incoming item’s binary file to SiYuan’s assets directory. The node sends the file using its original binary filename, or upload if no filename is set, and returns SiYuan’s successful upload map.

Inputs

  • Assets Directory Path (required) — SiYuan directory where the asset will be stored; defaults to /assets/.
  • Binary Property (required) — Name of the incoming binary property containing the file; defaults to data. Each input item must include this binary property.

Output shape

A single record containing SiYuan’s upload success map.

Returns data.succMap from SiYuan’s upload response, or an empty object if that field is absent. Upload errors are raised as node errors.

Links

Discussion