Status code: 3, Message: 82694, Server: Access Denied, Language: US-ASCII
I am having an issue that I find a bit odd.
I am able to upload files to a remote SFTP via GUI and setting preserve time to disable.
Doing the same thing with .NET and it doesn't work.
Snippet of my log:
I am able to upload files to a remote SFTP via GUI and setting preserve time to disable.
Doing the same thing with .NET and it doesn't work.
$transferOptions = New-Object WinSCP.TransferOptions $transferOptions.TransferMode = [WinSCP.TransferMode]::Binary $transferOptions.PreserveTimestamp = $false $transferOptions.ResumeSupport.State = [WinSCP.TransferResumeSupportState]::Off;
Script: put -nopermissions -nopreservetime -transfer="binary" -resumesupport="off" -- "filename" "uplodfoldename" . 2022-01-24 16:59:46.632 Binary transfer mode selected. . 2022-01-24 16:59:46.632 Opening remote file. > 2022-01-24 16:59:46.632 Type: SSH_FXP_OPEN, Size: 72, Number: 259 < 2022-01-24 16:59:46.764 Type: SSH_FXP_HANDLE, Size: 10, Number: 259 > 2022-01-24 16:59:46.764 Type: SSH_FXP_WRITE, Size: 32758, Number: 774 . 2022-01-24 16:59:47.630 Increasing send buffer from 262144 to 524288 < 2022-01-24 16:59:48.895 Status code: 3, Message: 82694, Server: Access Denied, Language: US-ASCII . 2022-01-24 16:59:48.905 Received SSH2_MSG_CHANNEL_DATA for nonexistent channel 0 . 2022-01-24 16:59:48.905 Attempt to close connection due to fatal exception: * 2022-01-24 16:59:48.905 Received SSH2_MSG_CHANNEL_DATA for nonexistent channel 0