How to know that SFTP Upload was Transferred Successfully?

Question:

In the online reference documentation, it says that “bool UploadFileByName(string remoteFilePath, string localFilePath)” will return true if success or false for failure.

My question is that how does your component know that the file had been transferred successfully? Does it get ACK from SFTP server or that only means that client had sent the file successfully but not guarantee that SFTP server had received the file successfully?

Answer:

The SFTP Specifications are such that each data packet must be acknowledged by the server with a response message.  The upload is successful after all packets have been sent and all responses (acks) have been received.

Tags :