Knowing if anything transferred

Is there any way to know if any part of a file was uploaded to the FTP server before a connection was lost? For example, if I upload a 10K file and the connection drops during the upload will LastTransferBytes say 5K was transferred? And if the connection drops before any of the file is sent will it be zero? Thanks

Hello ..

If the value of LastTransferBytes is smaller than the network buffer size you won't know if anything has been transferred or not. If its bigger than the network buffer size you know that something has been transferred.

Regards,
-Mat

Hi, unfortunately the LastTransferBytes value is not reset in the call to UploadFile. For example, if I upload a file then the connection drops just before the next call to UploadFile then the LastTransferBytes value is still for the first call to UploadFile. Shouldn't it be reset in UploadFile?

I will look at it and if true I will fix it as soon as possible (48h).

Regards,
-Mat

Hello ..

Please test the new version (1.5.8.5) from:
https://www.smartftp.com/FTPLib/download

It resets the last transfer data as soon as you call one of the following functions:
DownloadFile
UploadFile
FXPUploadFile
FXPDownloadFile

Regards,
-Mat

It's now reset, thanks!