Jump to content


Photo

UploadFile always return ftpErrorSuccess?


  • Please log in to reply
2 replies to this topic

#1 Nikeware

Nikeware
  • Members
  • 27 posts
  • Interests:
    Diff Commander - folders compare and merge tool<br />Visual Comparer - text files compare and merge tool

Posted 09 June 2006 - 11:32 AM

Hello, Mat!

When I initiate upload operation that very long by time (for example very big file) and try abort it (with Abort() method) then UploadFile return ftpErrorSuccess (not ftpErrorAborted).
Note: DownloadFile method work fine, always return ftpErrorAborted after Abort() method initiation.

Bug or feature? :unsure:

Regards,
Nikolai Egipko

#2 mb

mb

    Developer

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

Posted 09 June 2006 - 10:28 PM

Hello ...

Previously the Abort() function closed the data connection when uploading. Then the client waited for the server reply before the UploadFile() function returned. Now Abort() shutdowns or closes the data connection but the UploadFile() function immediately returns without waiting for a server reply.

As a result the UploadFile() function will now always return ftpErrorAbort when Abort() is called.

Newest build at
http://www.smartftp....ftplib/download

Regards,
-Mat

#3 Nikeware

Nikeware
  • Members
  • 27 posts
  • Interests:
    Diff Commander - folders compare and merge tool<br />Visual Comparer - text files compare and merge tool

Posted 10 June 2006 - 12:53 AM

As a result the UploadFile() function will now always return ftpErrorAbort when Abort() is called.

Thank you very much, Mat!
Now it works!
Your support is great :unsure:


Regards,
Nikolai




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users