Version of WinSCP 5.19.6- using version downloaded for automation.
We are trying to automate to an Amazon AWS transfer family server to send a small csv of hundreds of kb. What happens though is via any scripting or automation the server will only accept one line of csv data. Any more and the server we are sending to times out does not respond and using different software and wireshark found it would fail for 19 seconds with the server not responding. When trying to send via the GUI this issue does not persist which is what is difficult to understand.
We have limited availability to get server side to see why it does not respond. The root directory is "/" where we save to with the AWS url, I saw some notes around this in FAQs but can get files list ok from this directory so not sure where to go around this.
Is there anyone with further WinSCP automation able to advise any ideas of what I can do to get the file to put successfully using a script in this situation/ or point out what config settings on AWS side should be looked into
I have attached an example script. N.B. I was starting to list files in a local directory but it only
Exception calling "PutFiles" with "4" argument(s): "Timeout waiting for WinSCP to respond" At \WinSCP-5.19.6-Automation\autoscript.ps1:34 char:5 + $session.PutFiles("dir\test.csv + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) , MethodInvocationException + FullyQualifiedErrorId : TimeoutException