Dart Home | PowerTCP SFTP & SSH for .NET | Custom Development | Reply | PowerTCP SFTP & SSH for .NET Topics | Forums |
Author | Forum: PowerTCP SFTP & SSH for .NET Topic: Error when uploading file to SFTP site |
markinglis From: WORKSOP, United Kingdom Posts: 2 Member Since: 12/06/12 |
posted December 6, 2012 10:05 AM Hi I'm using the Put command to upload a file to a SFTP site. The file is uploading to the site correctly, however this does bring up a runtime error, which is "Operation unsupported (SSH_FX_OP_UNSUPPORTED: An attempted operation could not be completed by the server because the server does not support the operation.)". I've checked the actual SFTP site logs and it states the file was uploaded successfully, but the integrity wasn't checked. I'm not sure why the error is coming up when the file has been successfully uploaded. Below is the source code I'm running to upload the file. Dim sCopyResult As Dart.Ssh.CopyResult sCopyResult = sSSH1.Put("LocalFile", "DestinationFile", Dart.Ssh.CopyMode.Copy) |
Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted December 6, 2012 10:18 AM Hello, This is usually due to attempting to set the file's MTIME after upload; set the Sftp.AutoSetTime property to false to see if this resolves your issue. |
markinglis From: WORKSOP, United Kingdom Posts: 2 Member Since: 12/06/12 |
posted December 6, 2012 10:28 AM Hi I've amended the code with this property now and it's working properly. No errors have come up. Thank you very much for your help. |
Reply | PowerTCP SFTP & SSH for .NET Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |