SFTP : PAUSE RESUME ,Stop The Upload Method

Aug 3, 2012 at 10:56 AM


First, i want to say that Ssh.Net is a great API, i use it for uploading large files via SFTP.  With this tool, is it possible to pause, resume nd abort an upload.

B Regards.

Aug 10, 2012 at 3:26 PM



I didn't build it as obvious method to pause and resume but you can achieve this functionality by opening file as a SftpFileStream and then read from it as if it was local file.

Then when you pause and want to resume, simple use Seek function to shift current position in the file and continue from there.


Hope it helps.




Aug 21, 2012 at 9:03 AM
Edited Aug 21, 2012 at 9:04 AM

Thanks for the reply, i will try to implement this solution.