I want to upload a file to a ftp server programmatically (C++). If the connection is lost while uploading a file, I wouldn’t want to upload the file from scratch, but to upload only the part that I haven’t sent.
Does the APPE command fulfill my demand? What list of FTP commands should I use exactly? And how?
Check the RFC and specifically the
APPENDcommand:Note that you cannot simply APPEND the same file again. You should send the bytes remaining. That is, continue at the same position when the connection was lost.