Jump to content


Photo

Knowing if anything transferred


  • Please log in to reply
5 replies to this topic

#1 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 20 April 2006 - 08:08 AM

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

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 20 April 2006 - 11:50 AM

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

#3 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 22 April 2006 - 07:05 AM

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?

#4 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 22 April 2006 - 08:11 AM

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

Regards,
-Mat

#5 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 23 April 2006 - 11:32 PM

Hello ..

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

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

Regards,
-Mat

#6 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 24 April 2006 - 03:28 AM

It's now reset, thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users