Actions71
- Asset Actions
- Attribute Actions
- Block Actions
- Database Actions
- Document Actions
- Markdown Table Actions
- Notebook Actions
- Search Actions
- System Actions
- Tag Actions
Asset → Upload Asset
AI-generatedOverview
This node uploads a binary file as an asset to a specified directory path within the SiYuan workspace. It is useful for automating the process of storing files such as images, documents, or other media into SiYuan's asset management system. For example, a user can upload an image file from a workflow to a designated assets directory in SiYuan for later use in notes or documents.
Use Case Examples
- Uploading an image file from a workflow to the '/assets/' directory in SiYuan.
- Automating the upload of PDF documents to a specific assets folder in SiYuan for organized storage.
Properties
| Name | Meaning |
|---|---|
| Assets Directory Path | The directory path in SiYuan where the asset will be stored, e.g., '/assets/'. |
| Binary Property | The name of the binary property in the input data that contains the file to upload. |
Output
JSON
success- Indicates whether the upload operation was successful.
Dependencies
- Requires SiYuan API URL and API token credentials for authentication.
Troubleshooting
- Ensure that the SiYuan API URL and token credentials are correctly set; missing or invalid credentials will cause authentication errors.
- Verify that the binary property name matches the actual binary data property in the input; otherwise, the file will not be found for upload.
- Check that the assets directory path exists or is correctly specified in SiYuan to avoid upload failures.