FTP resume does not work in my app (wodSFTP / wodSFTP.NET / wodSFTPdll)
by Max, Tuesday, March 20, 2007, 12:09 (6459 days ago)
Hi, in my app I'm tring to use the resume function to resume an upload with ftpdlx ver. 2.6.3.290 but it does not work. The ftp server is vsftpd. Every time i request a resume the app restart the upload form the beginning. I use PutFile whith resume. I'm thiking that the remote ftp server does not support upload resume. Is there a command FTP sequance that permits me to verify if the remote ftp supports resume?.
Which ftp sequence uses ftpdlx to request a resume on upload?.
Thanks in advice.
Max
Re: FTP resume does not work in my app
by wodDamir, Tuesday, March 20, 2007, 12:34 (6459 days ago) @ Max
Max,
Can you please try some other client?
Does it work with it?
Can you verify that the Resume Property is set to true before you attempt a PutFile?
Regards,
Damba
Re: FTP resume does not work in my app
by Max, Tuesday, March 20, 2007, 12:49 (6458 days ago) @ wodDamir
Max,
Can you please try some other client?
Does it work with it?
Can you verify that the Resume Property is set to true before you attempt a PutFile?
Regards,
Damba
Hi, I've tried with filezilla, select resume and it works. The ftp command that filezilla sent are:
TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (80,86,145,128,34,13)
Command: APPE test.zip
Response: 150 Ok to send data.
Response: 226 File receive OK.
The resume property is correctly set to true. These are my ftp settings:
_ftp = Nothing
_ftp = New wodFtpDLXComLib.wodFtpDLXCom
_ftp.LicenseKey = MYCODE
_ftp.Authentication = odFtpDLXComLib.AuthenticationsEnum.authPassword
_ftp.Timeout = 60
_ftp.Compression = 0
_ftp.Blocking = True
_ftp.Protocol = wodFtpDLXComLib.ProtocolsEnum.FTP
_ftp.Hostname = _hostname
_ftp.Login = _login
_ftp.Password = _password
_ftp.Resume = True
_ftp.Passive = False
_ftp.Port = _port
...
_ftp.connect()
...
_ftp.putfile(...)
Re: FTP resume does not work in my app
by wodDamir, Tuesday, March 20, 2007, 13:12 (6458 days ago) @ Max
Max,
I've tried this with our latest version (2.7.0.309) and it worked as expected. I did the testing by using our VB sample 1.Simple .
Can you please the same sample? Does it work?
It would also be great if you could first update the component to the current version.
Regards,
Damba
Re: FTP resume does not work in my app
by Max, Tuesday, March 20, 2007, 15:36 (6458 days ago) @ wodDamir
Damba, i've updated the component to 2.7.0.309 and tried 1.Sample. Sometimes it SEEMS that the app is resuming but for 99 the application hangs or do nothing if I try to disconnect ad resuming. If I try with my application, in vb.net, the resume does not work: in the progress event position at the beginning of send is always 0 so, the resume apparently is not working. Is there a way to make a secure resume manually using putfileat or other methods?.
Regards.
Max
Re: FTP resume does not work in my app
by wodDamir, Tuesday, March 20, 2007, 16:02 (6458 days ago) @ Max
Max,
Perhaps you could make a small sample which we could run on our side in order to duplicate this?
You can send the sample to techsupport@weonlydo.com
Also, is there any chance we could connect to your server and try it directly? What version of vsftpd is it? Can you do telnet your_host 21 and tell me what is the first line returned?
The PutFileAt would work, but you would have to know the remoteposition from which to continue upload.
Regards,
Damba
Re: FTP resume does not work in my app
by Max, Tuesday, March 20, 2007, 16:53 (6458 days ago) @ wodDamir
Damba, I think I've found the problem: remote path. With a remote path like this test/test.zip ftpdlx upload correctly the file but the resume does not work. With a remote path like this /test/test.zip the resume works correctly.
Regards.
Max
Re: FTP resume does not work in my app
by woddrazen, Tuesday, March 20, 2007, 16:56 (6458 days ago) @ Max
Max,
Excellent, problem is solved now!
If you have any other question don't hesitate to ask we are here to help you.
Regards,
Drazen