title: powershell ftp upload issues
body: <p>Okay Im not sure what the problem is but I've been all over the internet and cannot get this to work! Im trying to do a simple upload of a 4 byte text file to a ftp serer. I took the code from this <a href="https://stackoverflow.com/questions/265339/whats-the-best-way-to-automate-secure-ftp-in-powershell">answer</a> exactly and put in the file i wanted to upload and the server password and username. But every time i wait and it eventually sends me this error:</p>
  
  <p>Exception calling "GetResponse" with "0" argument(s): "The underlying connection was closed: An unexpected error occurred on a receive."
  At \hqpublic\public\EMSDropBox\test2.ps1:22 char:39
  + $ftpresponse = $ftprequest.GetResponse &lt;&lt;&lt;&lt; ()
      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : DotNetMethodException</p>
  
  <p>Any help would be greatly appreciated!</p>