Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.6k views
in .NET FTP by (120 points)
How do I Achieve Auto Resume Facility.

(If connection lost FTP Should automatically resume file)

8 Answers

0 votes
by (162k points)
See FTPConnection.ResumeTransfer().

Basically, if the transfer fails leaving a partial file on disk, you can call ResumeTransfer and just restart the transfer.
0 votes
by (320 points)
i wants to add (pause - resume) facility.
so when pausing i use cancelTransfer(), then when resuming i use uploadFile() with Append=true but it just replace the partial file which already exists.

i tried also resumeTransfer() but if there a partial file it replaces it, if not it calls Uploaded event without uploading anything
what should i do?

Thanks
0 votes
by (140 points)
Hi,

Would you please provide us with the necessary code using the ResumeTransfer method written in C#? What I'd like to accomplish is to retry a failed download three times with a 5 minute interval between each attempt. Thanks.
0 votes
by (162k points)
If you are using edtFTPnet, take a look at TestResume.cs (FTPClient) or FTPConnTestResume.cs (if you are using FTPConnection)

Basically, if the transfer fails just call ResumeTransfer() (in FTPClient) and attempt the transfer again.

Hi,

Would you please provide us with the necessary code using the ResumeTransfer method written in C#? What I'd like to accomplish is to retry a failed download three times with a 5 minute interval between each attempt. Thanks.
0 votes
by (200 points)
Where can i get those example files (If you are using edtFTPnet, take a look at TestResume.cs (FTPClient) or FTPConnTestResume.cs (if you are using FTPConnection) ) ?



fumber
0 votes
by (162k points)
In the zip file, in the src directory. Look for a test subdirectory.

Where can i get those example files (If you are using edtFTPnet, take a look at TestResume.cs (FTPClient) or FTPConnTestResume.cs (if you are using FTPConnection) ) ?

fumber
0 votes
by (200 points)
Are these files also supplied with edtFTPnet Express ?? also i need som examples for the asynchronous methods ??

thx fumber
0 votes
by (51.6k points)
You're right, there should be a how to for transfer resumption. We'll do one and include it in the next release.

There is an example for asynchronous methods. Have a look in the Example Viewer application (it's called "How to use asynchronous methods").

There's also a section on it in the help:
edtFTPnet/Express 1.1 -> using edtFTPnet/Express -> How to... -> How to use asynchronous methods

- Hans (EDT)

Categories

...