# Upload files with SFTP

Upload files with SFTP on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

Transferetto

Small PowerShell module with FTPS/SFTP functionality

[View on GitHub](https://github.com/EvotecIT/Transferetto) [Visit Website](#) [Releases](https://github.com/EvotecIT/Transferetto/releases/tag/Transferetto-v2.0.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/Transferetto)

Stars**94**

Forks**17**

Open issues**0**

PowerShell Gallery downloads**14067470**

Release**v2.0.4**

Language: C# Updated: 2026-11-23

Curated Examples

Use Transferetto to upload local files into a remote SFTP folder.

This pattern is useful when a scheduled job needs to publish generated files to an SFTP endpoint.

It is adapted from the source example at `Examples/Example07-UploadSFTP.ps1`.

## When to use this pattern

- You have a folder of files that should be uploaded.
- The remote path is known ahead of time.
- Credentials should be prompted or retrieved securely at runtime.

## Example

```powershell
Import-Module Transferetto

$credential = Get-Credential
$sftpClient = Connect-SFTP -Server 'sftp.example.com' -Credential $credential

Get-SFTPList -SftpClient $sftpClient -Path '/incoming' | Format-Table

Get-ChildItem -LiteralPath "$PSScriptRoot\Upload" -File | ForEach-Object {
    Send-SFTPFile -SftpClient $sftpClient -LocalPath $_.FullName -RemotePath "/incoming/$($_.Name)" -AllowOverride
}

Disconnect-SFTP -SftpClient $sftpClient
```

## What this demonstrates

- connecting with a PowerShell credential
- listing a remote SFTP folder
- uploading local files with explicit remote paths

## Source

- [Example07-UploadSFTP.ps1](https://github.com/EvotecIT/Transferetto/blob/master/Examples/Example07-UploadSFTP.ps1)

<!-- PowerForge markdown artifact sha256:8A52ADBB1CE08165429AFAD571A6FAA795F97C9C4A0B0EFFF819C714560ED95D -->
