Search code examples
ftppowershelluploadfilezilla

Ftp upload with Powershell vs FileZilla


With a 210MB file, using a script like below takes a little over 10 minutes with Powershell:

$webclient = New-Object System.Net.WebClient
$uri1 = New-Object System.Uri($Ftp2)
$webclient.UploadFile($uri1, $File2)

However, using FileZilla, it takes under 2 minutes for the same file.

Is FileZilla optimized? Can I improve the Powershell call somehow?

I prefer to use PS as I have scripts that upload multi-GB files...


Solution

  • Setting the proxy = null didn't change the timing, however, using FTPWebRequest did the trick.