Actions8
Upload File
AI-generatedSummary
Upload a file to a specified remote path on an SMB share using the smbclient CLI.
Inputs
- Smbclient Path — Custom path to the smbclient binary if it is not in the system PATH; defaults to 'smbclient'.
- Remote Path (required) — The destination file path on the SMB share where the file will be uploaded.
- Source (required) — Select the source type of the file content to upload: either a binary property from the input items or raw text content.
- Binary Property — The name of the binary property containing the file data on the input item; used only if Source is 'Binary Property'. Defaults to 'data'.
- Text Content — Raw text content to upload as the file; used only if Source is 'Text'.
Output shape
a list of JSON objects, one per input item, each indicating the remote path uploaded and a success indicator
The output JSON for each item contains 'remotePath' (string) and 'uploaded' (boolean true). The operation expects input items containing binary data if 'Binary Property' source is selected; it writes this to a temporary file before uploading. If 'Text' is selected, the given text is uploaded as the file content.
Examples
Example 1: Upload a binary file from a workflow input
Set Remote Path to where the file should be stored. Select Source as Binary Property and specify which binary property contains the file data (default 'data').
Example 2: Upload text content directly
Set Remote Path to the target location, choose Source as Text, and enter the desired text into Text Content.