Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

kamii47

Winscpnet File resume not working while downloading with FTPS

I were using winscpnet for file downloading. now i needed to support file resume funtionality. For that what i have done is
var options = new TransferOptions();
options.ResumeSupport.State = TransferResumeSupportState.On;

And in my code for downloading I have done

TransferOperationResult transferResult = session.GetFiles(
_appSettings["SFTP_IncomingFileFolder"] + file.Folder + @"/" + file.FileName,
_appSettings["Local_IncomingFileFolder"] + file.Folder + @"\" + file.FileName +".filepart", false, options);
transferResult.Check();

Now to check if file resume work I disconnect while downloading. Problem is that every time I now download it starts from zero instead of the place where it left. Like for 100 mb file if local downloaded length is 30 mb. when i try to reconnect it starts from zero length.