Actions26
- File Actions
- Folder Actions
Folder → Upload File
AI-generatedSummary
Upload a file to a specified folder 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 full remote path including filename where the file should be uploaded on the SMB share.
- Source (required) — Select whether to upload file content from a binary property or from text content directly.
- Binary Property — The name of the binary property in the input item to use as the source file data if 'Source' is set to 'Binary Property'. Defaults to 'data'.
- Text Content — The text content to upload if 'Source' is set to 'Text'.
Output shape
a single JSON object per input item with confirmation of upload
Returns JSON containing the remotePath and an 'uploaded' flag set to true. Does not return the file content. Requires that the specified binary property exists if binary source is chosen. Temporary local files are used internally and cleaned up after upload.
Examples
Example 1: Upload binary data from incoming item
Set 'Source' to 'Binary Property' and specify the binary property holding the file data.
Example 2: Upload text content as a new file
Set 'Source' to 'Text' and enter the desired text into 'Text Content'. Specify the remote path.