# Upload files with FTPS

Upload files with FTPS 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**93**

Forks**18**

Open issues**0**

PowerShell Gallery downloads**14067470**

Release**v2.0.4**

Language: C# Updated: 2026-11-17

Curated Examples

Use Transferetto to upload one or more files to an FTPS endpoint from PowerShell.

This pattern is useful when a PowerShell script needs to publish files to a classic FTP-family endpoint but still use encrypted transport.

It is adapted from the source example at `Examples/Example06-UploadFTPS.ps1`.

## When to use this pattern

- The target system exposes FTPS rather than SFTP.
- You want to upload one file, several files, or a whole selected set from disk.
- The remote location may need to be created as part of the transfer.

## Example

```powershell
Import-Module Transferetto

$ftpClient = Connect-FTP -Server 'ftp.example.com' `
    -Credential (Get-Credential) `
    -EncryptionMode Explicit

$localFiles = Get-ChildItem -LiteralPath "$PSScriptRoot\Upload" -File

foreach ($file in $localFiles) {
    Send-FTPFile -Client $ftpClient `
        -LocalPath $file.FullName `
        -RemotePath "/incoming/$($file.Name)" `
        -RemoteExists Overwrite `
        -CreateRemoteDirectory
}

Disconnect-FTP -Client $ftpClient
```

## What this demonstrates

- connecting to an FTPS endpoint with explicit encryption
- selecting local files through normal PowerShell file handling
- uploading each file into a deterministic remote path

## Source

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

<!-- PowerForge markdown artifact sha256:165C0EC6F62783A9DB74D9AEA982EF5C47ADB3F17B0889E586AF1D6221FDF05C -->
