Upload
AI-generatedOverview
This node uploads a file to a Samba (SMB2) server. It supports uploading either binary files or text content to a specified full file path on the server. Users can choose to overwrite existing files if needed. This node is useful for automating file transfers to SMB shares, such as uploading reports, logs, or documents to a network file system.
Use Case Examples
- Uploading a binary file from previous workflow steps to a network share.
- Uploading text content as a new file to a specified path on the SMB server.
- Overwriting an existing file on the SMB server with new content.
Properties
| Name | Meaning |
|---|---|
| Path | The full file path on the SMB server where the file will be uploaded. |
| Binary File | Determines if the file content to upload is binary data or text content. |
| Input Binary Field | The name of the input binary field containing the file to be uploaded (used if Binary File is true). |
| File Content | The text content of the file to upload (used if Binary File is false). |
| Options.Overwrite | Whether to overwrite the file if it already exists on the SMB server. |
Output
JSON
jsonerror- Error message if the upload operation fails and continueOnFail is enabled.
Dependencies
- Requires SMB2 server credentials for authentication and connection.
Troubleshooting
- Common issues include missing or incorrect binary data when Binary File is true, or missing file content when Binary File is false.
- Errors related to file permissions or SMB connection issues may occur; ensure correct SMB credentials and access rights.
- If overwrite option is enabled but the file cannot be replaced, check file locks or permissions on the SMB server.
Links
- SMB Protocol - General information about the SMB protocol used for file sharing.