Actions14
- Agent Actions
- File Actions
- Image Actions
- Prompt Actions
- RAG Actions
Overview
This node integrates with the Straico API to perform various operations on different resources such as agents, files, images, models, prompts, RAGs (Retrieval-Augmented Generation), and users. Specifically, for the File Upload operation, it allows users to upload a binary file from the workflow into the Straico platform.
Typical use cases include:
- Uploading documents or data files to Straico for further processing or analysis.
- Automating file ingestion workflows where files are collected or generated in n8n and then sent to Straico.
- Integrating Straico’s file storage capabilities into broader automation pipelines.
Example: You have a PDF report generated in an earlier step of your workflow, and you want to upload it to Straico for semantic search or AI processing. This node can take that binary PDF and upload it directly.
Properties
| Name | Meaning |
|---|---|
| File | The binary file property name from the input item to upload. This must reference a binary data field containing the file to be uploaded. |
Output
The output is a JSON object representing the response from the Straico API after uploading the file. It typically contains metadata about the uploaded file such as its ID, status, or any other information returned by the API.
The node does not output binary data itself but processes binary input for upload.
Output example structure (simplified):
{
"id": "file_123456",
"status": "uploaded",
"fileName": "example.pdf",
"message": "File uploaded successfully"
}
Each output item is paired with the corresponding input item.
Dependencies
- Requires an API key credential for authenticating with the Straico API.
- The node uses the Straico API endpoint
https://api.straico.com/v0/file/upload. - The request is a multipart/form-data POST request including the file content.
- The node expects the input item to contain binary data under the specified property name.
Troubleshooting
Error: No binary data property "X" found on item!
This error occurs if the specified file property does not exist or does not contain binary data in the input item.
Resolution: Ensure the input item has binary data under the exact property name provided in the "File" parameter.API authentication errors
If the API key is missing or invalid, requests will fail.
Resolution: Verify the API key credential configuration in n8n.Unexpected API response or upload failure
Could be due to network issues, file size limits, or API restrictions.
Resolution: Check the API documentation for file size limits and ensure network connectivity.
Links and References
- Straico API Documentation (hypothetical link based on base URL)
- n8n Docs on Working with Binary Data
- n8n Docs on HTTP Request Node (for understanding HTTP calls)
If you need details on other operations or resources, please let me know!