Sign in to follow this  
Followers 0
stampy

FTP.au3 resuming an upload

8 posts in this topic

OK I've been looking, page after page after page. I've yet to find anything on being able to resume an upload if the connection is broken. Anyone have a link or an idea of that one? I'm just getting into the FTP and know I'm going to hit that question.

Share this post


Link to post
Share on other sites



Hi,

InetGet("abort")... if you used the InetGet function to start the download... See Autoit helpfile for more...

Bye

FreeRider


FreeRiderHonour & Fidelity

Share this post


Link to post
Share on other sites

Hi,

InetGet("abort")... if you used the InetGet function to start the download... See Autoit helpfile for more...

Bye

FreeRider

This has naught to do with FTP.

Share this post


Link to post
Share on other sites

Ya, while I haven't tested everything, and haven't even started the code, I can picture a large file loosing connection and me not wanting to start it over. As I'll be writing this for people that can't even use simple FTP software, I will need to assume for a lot. I'm sure some if not all files will be large and it would be better to resume rather than overwrite and start over. I'm just figured someone had probably dealt with this issue before.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

More important than resuming upload is have server that wants to resume downloading. Im not sure about ability of making some like this. But I wish good luck ! :)

EDIT:

Sory my fault it IS possible to made something like that ;)

Edited by Uriziel01

Share this post


Link to post
Share on other sites

InetGet("abort")

I have trouble with "abort" :-(

I run InetGet("ftp://ftp.xyz.com/..."&$FileName, $TmpDir &$FileNameTmp, 1, 1) and have a loop around looking for speed and progress. Sometimes the download breaks down and I would like to retry.

But now, shit happens - after calling InetGet("abort") my GUI will not come back.

By using cports.exe (http://www.nirsoft.net/utils/cports.html) I see a port-21-connection established, but no data running. When killing the connection with cports, AutoIT gives back at once.

So independent, what I try, there is no way to kill the broken download and restart a new one.

To reproduce this: The XP-PC is on a Ethernet-switch, the Internet-Router is also connected to the switch. While the download is running, I set the public-interface between router and internet down and have the problem. By simply disconnecting cables from the switch or stop traffic by personal-firewall it's different and not realistic, my internal network ist stable.

Share this post


Link to post
Share on other sites

Does this InetGet("abort") function work at all for resuming an FTP upload..??

Share this post


Link to post
Share on other sites

Does this InetGet("abort") function work at all for resuming an FTP upload..??

It's in the name.

InetGET means it is downloading a file, and not uploading.

"abort" means to cancel something.

It is exactly the opposite of what you want.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0