Upload File
Uploads a file from the local system to a remote SSH server.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Client Id - The unique identifier of the SSH connection, obtained from the Connect node.
- Local Path - The file path on the local system to upload.
- Remote Path - The destination file path on the remote server.
How It Works
The Upload File node transfers a file from the local system to a remote SSH server:
- Validates the provided client ID, local path, and remote path
- Retrieves the SSH client associated with the client ID
- Initiates a secure file transfer from the local path to the remote path
- Completes the transfer and returns success or error
Requirements
- A valid client ID from a previously established SSH connection using the Connect node
- Valid local file path that exists on the local system
- Valid remote file path where the user has write permissions
- Sufficient disk space on the remote system for the file
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid client ID
- No active connection found for the provided client ID
- Empty or invalid local path
- Empty or invalid remote path
- File not found at the local path
- Insufficient permissions to write to the remote path
- Insufficient disk space on the remote system
- Network connectivity issues during transfer
Usage Notes
- The local path must be accessible to the application
- The remote path directory must exist and be writable by the SSH user
- Large file transfers may take significant time depending on network conditions
- The node will overwrite existing files at the remote path without warning
- Ensure proper file permissions are set on the remote system after upload if needed