PutFile and Resume - WeOnlyDo Discussion board

PutFile and Resume (wodFtpDLX / wodFtpDLX.NET)

by r0m1k, Friday, November 30, 2007, 17:23 (6204 days ago)

Hi,
Resume transfer don't start after abort. I make small vbs test script:
[code]
On Error Resume Next
objFTP.Passive = 0
objFTP.Blocking = 1
objFTP.Connect

objFTP.TransferMode = 0
objFTP.Resume = 0
objFTP.PutFile C:\bigFile.iso , /newFolder/simple.out
objFTP.Resume = 1
objFTP.PutFile C:\bigFile.iso , /newFolder/simple.out

objFTP.Disconnect

Sub wod_Done(ErrorCode, ErrorText)
WScript.Echo Done: & ErrorCode
End Sub

Sub wod_Progress(pos, total)
If(pos > 5242880) Then objFTP.Abort
End Sub
[/code]

First PutFile generate exception, and on second PutFile instantly come Done event with ErrorCode=0. File not continue uploading.

As server use fresh downloaded FileZilla server.

Thanks


Complete thread: