Overview
This node integrates with the Launix API, enabling users to perform various data operations on Launix software tables and files. It supports actions such as creating, editing, deleting, listing, and viewing items in tables, executing custom API actions, and handling file uploads and downloads.
The Upload File operation specifically allows uploading a file from binary data contained in the input item to the Launix system. This is useful when automating workflows that require sending files (e.g., documents, images) into Launix for storage or processing.
Practical examples:
- Uploading scanned invoices or receipts directly from an automation workflow into Launix.
- Sending generated reports or PDFs from other systems into Launix for archival.
- Automating file attachments to records managed within Launix tables.
Properties
| Name | Meaning |
|---|---|
| Binary Property | Name of the binary property containing the file to upload. Default is "data". |
Output
The output JSON structure after a successful file upload contains:
uploaded: A boolean indicating if the upload was successful (true).result: The response object returned by the Launix API after uploading the file, which may include metadata about the uploaded file or confirmation details.
No binary data is outputted by this operation; it only returns JSON confirming the upload status and result.
Example output JSON:
{
"uploaded": true,
"result": {
// API response details about the uploaded file
}
}
Dependencies
- Requires an API key credential for authenticating with the Launix API.
- The node makes HTTP requests to the Launix base URL configured in the credentials.
- The binary data to upload must be present in the specified binary property of the input item.
Troubleshooting
- Missing binary property error: If the specified binary property does not exist on the input item or does not contain binary data, the node will throw an error stating the binary property is missing. Ensure the input data includes the correct binary property with valid file content.
- API errors: If the Launix API returns an error during upload, the node will throw that error. Check the API credentials, permissions, and network connectivity.
- Incorrect binary property name: Double-check the spelling and case of the binary property name configured in the node settings.
- File size or format issues: The Launix API might reject files that are too large or unsupported formats. Verify the file meets API requirements.
Links and References
- Launix API Documentation (hypothetical link)
- n8n Binary Data Handling
- n8n HTTP Request Node (for understanding underlying request mechanics)