Page 1 of 1

ftp transfer

Posted: Tue Aug 07, 2007 10:52 am
by Richard Chidiak
Hello

My application transmits on a daily basis a file to a server via ftp.

From time to time, when we check the file at the server end it is not sent completely but part of the file.

Is there a way to control the size of a received file (ftp) versus the transmitted one ?

Any help will be appreciated,

Thanks

Richard

Posted: Tue Aug 07, 2007 11:36 am
by Antonio Linares
Richard,

Do you use Microsoft's wininet FWH based classes ?

Posted: Tue Aug 07, 2007 12:38 pm
by Richard Chidiak
Antonio

Yes i use wininet with fwh

Richard

Posted: Tue Aug 07, 2007 12:55 pm
by Enrico Maria Giordano
Try to check the return value of the APIs.

EMG

Posted: Tue Aug 07, 2007 12:58 pm
by Richard Chidiak
Enrico

I do, it returns ok while the file is not fully transfered.

This is why i want to check the file size.

I guess i will user oftp:directory()

The second element of the array is the file size if i am not mistaking.

Will give it a try

Richard

Posted: Tue Aug 07, 2007 2:15 pm
by Enrico Maria Giordano
If the APIs return .T. then the file must be fully transfered. The problem is elsewhere.

EMG