File Uploaded with "session.PutFiles" but thFileName is '' BLANK. transferResult reports okay upload

Advertisement

aaltieri
Joined:
Posts:
4
Location:
U.S.

File Uploaded with "session.PutFiles" but thFileName is '' BLANK. transferResult reports okay upload

When I used the GUI of WinSCP and upload a file it works fine.
I use the script to upload the file and the filename becomes blank '' NO NAME.
When I check transferResult.Check() it reports that the filename "FileName.txt" was uploaded correctly.
The client shows me the file on his server and the file name is '' Blank.
But it works with the GUI
Here is the snippet of coded used.
transferResult = session.PutFiles(FtpsApiResponse.FileLocation & _ FtpsApiResponse.FileName,_FtpsApiResponse.ChangeDirectory, False, transferOptions)
transferResult.Check()
mSucccess = "IsSuccess:" & transferResult.IsSuccess.ToString() & "</br> "
'mSuccess returns True
For Each transfer In transferResult.Transfers
mSucccess = mSucccess & " File Transferred:" & transfer.FileName & "</br> "
Next
Response.Write(mSucccess)
I see that the file has been uploaded.

Here below are some of the option I have set. I have tried different combinations but nothing seems works.
transferOptions.FilePermissions = Nothing
transferOptions.PreserveTimestamp = False
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Re: File Uploaded with "session.PutFiles" but thFileName is '' BLANK. transferResult reports okay upload

Please attach a full session log file both from GUI and the .NET assembly (using the latest version of WinSCP).

Reply with quote

aaltieri
Joined:
Posts:
4
Location:
U.S.

2 logs from the connection GUI and .NET Please any help would be great

When I use the GUI it sends the file and keeps the file name. I see it on the server.
When I use the .NET it sends the file but the name becomes blank on the server.
I do a For Each transfer In transferResult.Transfers
it shows I sent the file and reports back to me the correct file name it does not appear to have an error.
sorry for the delay in the response.

Reply with quote

aaltieri
Joined:
Posts:
4
Location:
U.S.

Sorry here are the logs.

'''''''''''''''''Below From GUI winscp utility
. 2018-03-09 08:41:30.467 --------------------------------------------------------------------------
. 2018-03-09 08:41:30.482 WinSCP Version 5.9.6 (Build 7601) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
. 2018-03-09 08:41:30.482 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2018-03-09 08:41:30.482 Log level: Normal
. 2018-03-09 08:41:30.482 Local account: #####\########
. 2018-03-09 08:41:30.482 Working directory: C:\Program Files (x86)\WinSCP
. 2018-03-09 08:41:30.482 Process ID: 7032
. 2018-03-09 08:41:30.482 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2018-03-09 08:41:30.482 Time zone: Current: GMT-5, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/11/2018, DST End: 11/4/2018
. 2018-03-09 08:41:30.482 Login time: Friday, March 09, 2018 8:41:30 AM
. 2018-03-09 08:41:30.482 --------------------------------------------------------------------------
. 2018-03-09 08:41:30.482 Session name: Assurant (Site)
. 2018-03-09 08:41:30.482 Host name: 167.79.186.81 (Port: 10022)
. 2018-03-09 08:41:30.482 User name: ######## (Password: Yes, Key file: No, Passphrase: No)
. 2018-03-09 08:41:30.482 Tunnel: No
. 2018-03-09 08:41:30.482 Transfer Protocol: SFTP (SCP)
. 2018-03-09 08:41:30.482 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2018-03-09 08:41:30.482 Disable Nagle: No
. 2018-03-09 08:41:30.482 Proxy: None
. 2018-03-09 08:41:30.482 Send buffer: 262144
. 2018-03-09 08:41:30.482 SSH protocol version: 2; Compression: No
. 2018-03-09 08:41:30.482 Bypass authentication: No
. 2018-03-09 08:41:30.482 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2018-03-09 08:41:30.482 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2018-03-09 08:41:30.482 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2018-03-09 08:41:30.482 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2018-03-09 08:41:30.482 Simple channel: Yes
. 2018-03-09 08:41:30.482 Return code variable: Autodetect; Lookup user groups: Auto
. 2018-03-09 08:41:30.482 Shell: default
. 2018-03-09 08:41:30.482 EOL: LF, UTF: Auto
. 2018-03-09 08:41:30.482 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2018-03-09 08:41:30.482 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2018-03-09 08:41:30.482 SFTP Bugs: Auto,Auto
. 2018-03-09 08:41:30.482 SFTP Server: default
. 2018-03-09 08:41:30.482 Local directory: C:\Temp, Remote directory: /spnasdi1, Update: Yes, Cache: Yes
. 2018-03-09 08:41:30.482 Cache directory changes: Yes, Permanent: Yes
. 2018-03-09 08:41:30.482 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2018-03-09 08:41:30.482 DST mode: Unix
. 2018-03-09 08:41:30.482 --------------------------------------------------------------------------
. 2018-03-09 08:41:30.794 Looking up host "167.79.186.81" for SSH connection
. 2018-03-09 08:41:30.794 Connecting to 167.79.186.81 port 10022
. 2018-03-09 08:41:30.810 We claim version: SSH-2.0-WinSCP_release_5.9.6
. 2018-03-09 08:41:30.857 Server version: SSH-2.0-IBM Sterling Connect:Enterprise for UNIX2.5.00
. 2018-03-09 08:41:30.857 We believe remote version has SSH-2 channel request bug
. 2018-03-09 08:41:30.857 Using SSH protocol version 2
. 2018-03-09 08:41:30.857 Have a known host key of type rsa2
. 2018-03-09 08:41:30.872 Doing Diffie-Hellman group exchange
. 2018-03-09 08:41:30.904 Doing Diffie-Hellman key exchange with hash SHA-1
. 2018-03-09 08:41:31.247 Host key fingerprint is:
. 2018-03-09 08:41:31.247 ssh-rsa 1024 cc:5a:ca:3b:e2:40:98:ec:e5:66:93:8b:68:d2:2f:f5
. 2018-03-09 08:41:31.247 Verifying host key rsa2 0x23,0xaeddc0ebfc077a20 8686dc5134097d41 eb3c7fbcd944b349 8acc52f9d06b5694 04889df074c55ac4 4f748704e94d47e2 48281b8e0e50a127 a4c36d87f8c75a13 b6ad1cc25ccebcc6 3c58db99a02d41b5 c339b380089b5e6f 0a597a40201d7ad4 428a67beb86533b9 1a36e7d02bff5c8e 57ea5203d1446cf0 15ff269fcd4eb2e1 with fingerprint ssh-rsa 1024 cc:5a:ca:3b:e2:40:98:ec:e5:66:93:8b:68:d2:2f:f5
. 2018-03-09 08:41:31.294 Host key matches cached key
. 2018-03-09 08:41:31.294 Initialised AES-256 CBC client->server encryption
. 2018-03-09 08:41:31.294 Initialised HMAC-SHA1 client->server MAC algorithm
. 2018-03-09 08:41:31.294 Initialised AES-256 CBC server->client encryption
. 2018-03-09 08:41:31.294 Initialised HMAC-SHA1 server->client MAC algorithm
! 2018-03-09 08:41:31.372 Using username "spnasdi1".
. 2018-03-09 08:41:31.434 Server offered these authentication methods: publickey,password,keyboard-interactive
. 2018-03-09 08:41:31.434 Attempting keyboard-interactive authentication
. 2018-03-09 08:41:31.465 Server refused keyboard-interactive authentication
. 2018-03-09 08:41:31.465 Server offered these authentication methods: publickey,password,keyboard-interactive
. 2018-03-09 08:41:31.465 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2018-03-09 08:41:31.465 Using stored password.
. 2018-03-09 08:41:31.481 Sent password
. 2018-03-09 08:41:31.575 Access granted
. 2018-03-09 08:41:31.575 Opening session as main channel
. 2018-03-09 08:41:31.590 Opened main channel
. 2018-03-09 08:41:31.668 Started a shell/command
. 2018-03-09 08:41:31.731 --------------------------------------------------------------------------
. 2018-03-09 08:41:31.731 Using SFTP protocol.
. 2018-03-09 08:41:31.731 Doing startup conversation with host.
> 2018-03-09 08:41:31.793 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2018-03-09 08:41:31.809 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2018-03-09 08:41:31.809 SFTP version 3 negotiated.
. 2018-03-09 08:41:31.809 We believe the server has signed timestamps bug
. 2018-03-09 08:41:31.809 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 strings are not mandatory
. 2018-03-09 08:41:31.809 Changing directory to "/spnasdi1".
. 2018-03-09 08:41:31.809 Getting real path for '/spnasdi1'
> 2018-03-09 08:41:31.809 Type: SSH_FXP_REALPATH, Size: 18, Number: 16
< 2018-03-09 08:41:31.840 Type: SSH_FXP_NAME, Size: 39, Number: 16
. 2018-03-09 08:41:31.855 Real path is '/spnasdi1'
. 2018-03-09 08:41:31.855 Trying to open directory "/spnasdi1".
> 2018-03-09 08:41:31.855 Type: SSH_FXP_LSTAT, Size: 18, Number: 263
< 2018-03-09 08:41:31.902 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2018-03-09 08:41:31.902 Getting current directory name.
. 2018-03-09 08:41:32.105 Listing directory "/spnasdi1".
> 2018-03-09 08:41:32.105 Type: SSH_FXP_OPENDIR, Size: 18, Number: 523
< 2018-03-09 08:41:32.121 Type: SSH_FXP_HANDLE, Size: 13, Number: 523
> 2018-03-09 08:41:32.121 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2018-03-09 08:41:32.136 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2018-03-09 08:41:32.136 Status code: 1
. 2018-03-09 08:41:32.136 Listing file "/spnasdi1/..".
> 2018-03-09 08:41:32.136 Type: SSH_FXP_LSTAT, Size: 21, Number: 1031
< 2018-03-09 08:41:32.152 Type: SSH_FXP_ATTRS, Size: 37, Number: 1031
. 2018-03-09 08:41:32.152 ..;D;0;2018-03-09T13:41:32.000Z;3;"" [6000];"" [1000];rwxrwxrwx;1
> 2018-03-09 08:41:32.152 Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
. 2018-03-09 08:41:32.152 ..;D;0;2018-03-09T13:41:32.000Z;3;"" [6000];"" [1000];rwxrwxrwx;1
. 2018-03-09 08:41:32.230 Startup conversation with host finished.
. 2018-03-09 08:41:43.781 Copying 1 files/directories to remote directory "/spnasdi1/"
. 2018-03-09 08:41:43.781 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: N (102400); CalcS: Yes; Mask: *.*
. 2018-03-09 08:41:43.781 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2018-03-09 08:41:43.781 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2018-03-09 08:41:43.797 File: 'C:\Temp\Results0.txt' [2018-03-01T18:01:51.558Z] [8462]
. 2018-03-09 08:41:43.797 Copying "C:\Temp\Results0.txt" to remote directory started.
. 2018-03-09 08:41:43.812 Binary transfer mode selected.
. 2018-03-09 08:41:43.812 Opening remote file.
> 2018-03-09 08:41:43.812 Type: SSH_FXP_OPEN, Size: 47, Number: 1539
< 2018-03-09 08:41:43.812 Type: SSH_FXP_STATUS, Size: 24, Number: 1284
. 2018-03-09 08:41:43.812 Discarding reserved response
< 2018-03-09 08:41:43.844 Type: SSH_FXP_HANDLE, Size: 13, Number: 1539
> 2018-03-09 08:41:43.844 Type: SSH_FXP_WRITE, Size: 8487, Number: 2054
> 2018-03-09 08:41:43.844 Type: SSH_FXP_CLOSE, Size: 13, Number: 2308
> 2018-03-09 08:41:43.844 Type: SSH_FXP_SETSTAT, Size: 43, Number: 1801
< 2018-03-09 08:41:44.078 Type: SSH_FXP_STATUS, Size: 24, Number: 2054
< 2018-03-09 08:41:44.296 Type: SSH_FXP_STATUS, Size: 39, Number: 2308
< 2018-03-09 08:41:44.296 Status code: 0
. 2018-03-09 08:41:44.327 Preserving timestamp [2018-03-01T18:01:51.000Z]
< 2018-03-09 08:41:44.327 Type: SSH_FXP_STATUS, Size: 24, Number: 1801
< 2018-03-09 08:41:44.327 Status code: 0
. 2018-03-09 08:41:44.327 Transfer done: 'C:\Temp\Results0.txt' [8462]
. 2018-03-09 08:41:44.327 Listing directory "/spnasdi1".
> 2018-03-09 08:41:44.327 Type: SSH_FXP_OPENDIR, Size: 18, Number: 2571
< 2018-03-09 08:41:44.358 Type: SSH_FXP_HANDLE, Size: 13, Number: 2571
> 2018-03-09 08:41:44.358 Type: SSH_FXP_READDIR, Size: 13, Number: 2828
< 2018-03-09 08:41:44.374 Type: SSH_FXP_NAME, Size: 128, Number: 2828
> 2018-03-09 08:41:44.374 Type: SSH_FXP_READDIR, Size: 13, Number: 3084
< 2018-03-09 08:41:44.390 Type: SSH_FXP_STATUS, Size: 28, Number: 3084
< 2018-03-09 08:41:44.390 Status code: 1
> 2018-03-09 08:41:44.405 Type: SSH_FXP_CLOSE, Size: 13, Number: 3332
. 2018-03-09 08:41:44.405 Results0.txt;-;8462;2018-03-09T13:41:43.000Z;3;"spnasdi1" [6000];"168189" [1000];r--r--r--;0
. 2018-03-09 08:41:44.405 ..;D;0;1899-12-30T05:00:00.000Z;0;"" [0];"" [0];---------;0
. 2018-03-09 08:41:56.126 Closing connection.
. 2018-03-09 08:41:56.126 Sending special code: 12
. 2018-03-09 08:41:56.126 Sent EOF message
'''''''''''''''''Above From GUI winscp utility

'''''''''''''''''Below From .NET using Import WinSCP vb.net
. 2018-03-09 09:51:28.437 --------------------------------------------------------------------------
. 2018-03-09 09:51:28.437 WinSCP Version 5.8.4 RC (Build 6736) (OS 6.3.9600 - Windows Server 2012 R2 Standard)
. 2018-03-09 09:51:28.437 Configuration: nul
. 2018-03-09 09:51:28.437 Log level: Normal
. 2018-03-09 09:51:28.437 Local account: NTWEB3\Administrator
. 2018-03-09 09:51:28.437 Working directory: C:\LocalHTML\Utilities\bin
. 2018-03-09 09:51:28.437 Process ID: 4276
. 2018-03-09 09:51:28.437 Command-line: "C:\LocalHTML\Utilities\bin\winscp.exe" /xmllog="C:\Users\Administrator\AppData\Local\Temp\wscp0E08.01BFC7F3.tmp" /xmlgroups /nointeractiveinput /dotnet=584 /ini=nul /log="\\ntweb3\localhtml$\Utilities\testlog.txt" /console /consoleinstance=_3592_29116196_469
. 2018-03-09 09:51:28.437 Time zone: Current: GMT-5, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/11/2018, DST End: 11/4/2018
. 2018-03-09 09:51:28.437 Login time: Friday, March 09, 2018 9:51:28 AM
. 2018-03-09 09:51:28.437 --------------------------------------------------------------------------
. 2018-03-09 09:51:28.437 Script: Retrospectively logging previous script records:
> 2018-03-09 09:51:28.437 Script: option batch on
< 2018-03-09 09:51:28.437 Script: batch on
< 2018-03-09 09:51:28.437 Script: reconnecttime 120
> 2018-03-09 09:51:28.437 Script: option confirm off
< 2018-03-09 09:51:28.437 Script: confirm off
> 2018-03-09 09:51:28.437 Script: option reconnecttime 120
< 2018-03-09 09:51:28.437 Script: reconnecttime 120
> 2018-03-09 09:51:28.437 Script: open sftp://spnasdi1:***@167.79.186.81:10022 -hostkey="ssh-rsa 1024 cc:5a:ca:3b:e2:40:98:ec:e5:66:93:8b:68:d2:2f:f5" -timeout=15
. 2018-03-09 09:51:28.437 --------------------------------------------------------------------------
. 2018-03-09 09:51:28.437 Session name: spnasdi1@167.79.186.81 (Ad-Hoc site)
. 2018-03-09 09:51:28.437 Host name: 167.79.186.81 (Port: 10022)
. 2018-03-09 09:51:28.437 User name: spnasdi1 (Password: Yes, Key file: No)
. 2018-03-09 09:51:28.437 Tunnel: No
. 2018-03-09 09:51:28.437 Transfer Protocol: SFTP
. 2018-03-09 09:51:28.437 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2018-03-09 09:51:28.437 Disable Nagle: No
. 2018-03-09 09:51:28.437 Proxy: None
. 2018-03-09 09:51:28.437 Send buffer: 262144
. 2018-03-09 09:51:28.437 SSH protocol version: 2; Compression: No
. 2018-03-09 09:51:28.437 Bypass authentication: No
. 2018-03-09 09:51:28.437 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2018-03-09 09:51:28.437 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2018-03-09 09:51:28.437 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2018-03-09 09:51:28.437 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2018-03-09 09:51:28.437 Simple channel: Yes
. 2018-03-09 09:51:28.437 Return code variable: Autodetect; Lookup user groups: Auto
. 2018-03-09 09:51:28.437 Shell: default
. 2018-03-09 09:51:28.437 EOL: LF, UTF: Auto
. 2018-03-09 09:51:28.437 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2018-03-09 09:51:28.437 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2018-03-09 09:51:28.437 SFTP Bugs: Auto,Auto
. 2018-03-09 09:51:28.437 SFTP Server: default
. 2018-03-09 09:51:28.437 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2018-03-09 09:51:28.437 Cache directory changes: Yes, Permanent: Yes
. 2018-03-09 09:51:28.437 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2018-03-09 09:51:28.437 DST mode: Unix
. 2018-03-09 09:51:28.437 --------------------------------------------------------------------------
. 2018-03-09 09:51:28.437 Looking up host "167.79.186.81" for SSH connection
. 2018-03-09 09:51:28.437 Connecting to 167.79.186.81 port 10022
. 2018-03-09 09:51:28.453 We claim version: SSH-2.0-WinSCP_release_5.8.4
. 2018-03-09 09:51:28.484 Server version: SSH-2.0-IBM Sterling Connect:Enterprise for UNIX2.5.00
. 2018-03-09 09:51:28.484 We believe remote version has SSH-2 channel request bug
. 2018-03-09 09:51:28.484 Using SSH protocol version 2
. 2018-03-09 09:51:28.484 Have a known host key of type rsa2
. 2018-03-09 09:51:28.500 Doing Diffie-Hellman group exchange
. 2018-03-09 09:51:28.531 Doing Diffie-Hellman key exchange with hash SHA-1
. 2018-03-09 09:51:29.313 Host key fingerprint is:
. 2018-03-09 09:51:29.313 ssh-rsa 1024 cc:5a:ca:3b:e2:40:98:ec:e5:66:93:8b:68:d2:2f:f5
. 2018-03-09 09:51:29.313 Verifying host key rsa2 0x23,0xaeddc0ebfc077a20 8686dc5134097d41 eb3c7fbcd944b349 8acc52f9d06b5694 04889df074c55ac4 4f748704e94d47e2 48281b8e0e50a127 a4c36d87f8c75a13 b6ad1cc25ccebcc6 3c58db99a02d41b5 c339b380089b5e6f 0a597a40201d7ad4 428a67beb86533b9 1a36e7d02bff5c8e 57ea5203d1446cf0 15ff269fcd4eb2e1 with fingerprint ssh-rsa 1024 cc:5a:ca:3b:e2:40:98:ec:e5:66:93:8b:68:d2:2f:f5
. 2018-03-09 09:51:29.313 Host key matches configured key
. 2018-03-09 09:51:29.313 Initialised AES-256 CBC client->server encryption
. 2018-03-09 09:51:29.313 Initialised HMAC-SHA1 client->server MAC algorithm
. 2018-03-09 09:51:29.313 Initialised AES-256 CBC server->client encryption
. 2018-03-09 09:51:29.313 Initialised HMAC-SHA1 server->client MAC algorithm
! 2018-03-09 09:51:29.391 Using username "spnasdi1".
. 2018-03-09 09:51:29.406 Attempting keyboard-interactive authentication
. 2018-03-09 09:51:29.422 Server refused keyboard-interactive authentication
. 2018-03-09 09:51:29.422 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2018-03-09 09:51:29.422 Using stored password.
. 2018-03-09 09:51:29.422 Sent password
. 2018-03-09 09:51:29.438 Access granted
. 2018-03-09 09:51:29.438 Opening session as main channel
. 2018-03-09 09:51:29.469 Opened main channel
. 2018-03-09 09:51:29.531 Started a shell/command
. 2018-03-09 09:51:29.531 --------------------------------------------------------------------------
. 2018-03-09 09:51:29.531 Using SFTP protocol.
. 2018-03-09 09:51:29.531 Doing startup conversation with host.
> 2018-03-09 09:51:29.531 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2018-03-09 09:51:29.594 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2018-03-09 09:51:29.594 SFTP version 3 negotiated.
. 2018-03-09 09:51:29.594 We believe the server has signed timestamps bug
. 2018-03-09 09:51:29.594 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 strings are not mandatory
. 2018-03-09 09:51:29.594 Getting current directory name.
. 2018-03-09 09:51:29.594 Getting real path for '.'
> 2018-03-09 09:51:29.594 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2018-03-09 09:51:29.610 Type: SSH_FXP_NAME, Size: 39, Number: 16
. 2018-03-09 09:51:29.610 Real path is '/spnasdi1'
. 2018-03-09 09:51:29.610 Startup conversation with host finished.
< 2018-03-09 09:51:29.610 Script: Active session: [1] spnasdi1@167.79.186.81
> 2018-03-09 09:51:30.078 Script: pwd
< 2018-03-09 09:51:30.078 Script: /spnasdi1
> 2018-03-09 09:51:30.141 Script: put -nopermissions -nopreservetime -transfer="binary" -resumesupport="off" -- "\\ntweb3\localhtml$\Utilities\FTPTest.txt" ""
. 2018-03-09 09:51:30.141 Copying 1 files/directories to remote directory "/spnasdi1"
. 2018-03-09 09:51:30.141 PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: N (102400); CalcS: No; Mask: "
. 2018-03-09 09:51:30.141 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2018-03-09 09:51:30.141 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2018-03-09 09:51:30.157 File: '\\ntweb3\localhtml$\Utilities\FTPTest.txt' [2018-02-28T16:01:12.101Z] [404]
. 2018-03-09 09:51:30.157 Copying "\\ntweb3\localhtml$\Utilities\FTPTest.txt" to remote directory started.
. 2018-03-09 09:51:30.157 Binary transfer mode selected.
. 2018-03-09 09:51:30.157 Opening remote file.
> 2018-03-09 09:51:30.157 Type: SSH_FXP_OPEN, Size: 36, Number: 259
< 2018-03-09 09:51:30.172 Type: SSH_FXP_HANDLE, Size: 13, Number: 259
> 2018-03-09 09:51:30.172 Type: SSH_FXP_WRITE, Size: 429, Number: 774
> 2018-03-09 09:51:30.172 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
< 2018-03-09 09:51:30.282 Type: SSH_FXP_STATUS, Size: 24, Number: 774
< 2018-03-09 09:51:30.360 Type: SSH_FXP_STATUS, Size: 39, Number: 1028
< 2018-03-09 09:51:30.360 Status code: 0
. 2018-03-09 09:51:30.360 Transfer done: '\\ntweb3\localhtml$\Utilities\FTPTest.txt' [404]
> 2018-03-09 09:51:30.516 Script: exit
. 2018-03-09 09:51:30.516 Script: Exit code: 0
. 2018-03-09 09:51:30.516 Closing connection.
. 2018-03-09 09:51:30.516 Sending special code: 12
. 2018-03-09 09:51:30.516 Sent EOF message

'''''''''''''''''Above From NET using Import WinSCP vb.net

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Re: File Uploaded with "session.PutFiles" but thFileName is '' BLANK. transferResult reports okay upload

> Script: put -nopermissions -nopreservetime -transfer="binary" -resumesupport="off" -- "\\ntweb3\localhtml$\Utilities\FTPTest.txt" ""
That indicates that _FtpsApiResponse.ChangeDirectory has an empty value.
It must be a path to a target directory followed by a slash (and optionally an operation mask).
https://winscp.net/eng/docs/library_session_putfiles

Reply with quote

Advertisement

aaltieri
Joined:
Posts:
4
Location:
U.S.

Thanks for the Answer

Perfect Answer thanks I can't believe I missed that.
Dam....
Client didn't tell me that it was a change directory.
Anyhow Thanks again.

Reply with quote

Advertisement

You can post new topics in this forum