Hi,
I found some strange behavior for some kind of FTP server. When I upload file via GUI everything is OK but via scripting it fail on server - Interupted and script itself return success.
Winscp version: 5.5.2(Build 4130)
WinSCPnet.dll version: 1.1.5.4130, product version 5.5.2.0
I'm using default example script
https://winscp.net/eng/docs/library_powershell#example
If some other information is needed please let me know. I'll add as much as I can.
GUI log:
220 Welcome to Synchrony Gateway FTP server
USER ***
331 Send password please
PASS ***
230 User logged in, proceed
SYST
215 UNIX XFB/Gateway
FEAT
211-Extensions supported
211- SIZE
211- MDTM
211- AUTH TLS
211- PBSZ
211- PROT
211 End of feat command response
PWD
257 "/" is current directory.
CWD /test
250 Requested file action okay, completed
PWD
257 "/test" is current directory.
TYPE A
200 Command okay
PASV
227 Entering passive mode (*,*,*,*,*,*).
LIST -a
125 List started
226 List completed
TYPE A
200 Command okay
PASV
227 Entering passive mode (*,*,*,*,*,*).
LIST
125 List started
226 List completed
TYPE I
200 Command okay
PASV
227 Entering passive mode (*,*,*,*,*,*).
STOR test.txt
125 Start receiving 's691515.test.txt', remote file is: test.txt
226 Closing data connection (network bytes 34/file bytes 34)
TYPE A
200 Command okay
PASV
227 Entering passive mode (*,*,*,*,*,*).
LIST
125 List started
226 List completed
Script log:
220 Welcome to Synchrony Gateway FTP server
USER ***
331 Send password please
PASS ***
230 User logged in, proceed
SYST
215 UNIX XFB/Gateway
FEAT
211-Extensions supported
211- SIZE
211- MDTM
211- AUTH TLS
211- PBSZ
211- PROT
211 End of feat command response
PWD
257 "/" is current directory.
TYPE A
200 Command okay
PASV
227 Entering passive mode (*,*,*,*,*,*).
LIST
125 List started
226 List completed
TYPE I
200 Command okay
PASV
227 Entering passive mode (*,*,*,*,*,*).
STOR test
125 Start receiving 's691516.test', remote file is: test
226 Closing data connection (network bytes 34/file bytes 34)[url][/url]
running script + output:
powershell.exe -ExecutionPolicy Unrestricted -File upload.ps1
Upload of test.txt succeeded