I would like to know how can I resume an aborted transfer (for instance, because the network comes down) using Poco FTP.
I have two solutions : use the command REST, along with the SIZE command or use APPE (append) to continue the transfer.
I think it should be possible to parameter beginUpload() with some parameter to use APPE or STOU instead of STOR (which would be the default op) for file store operation. Any suggestions ?
- Code: Select all
std::ostream& beginUpload(const std::string& path, const std::string& operation = "STOR");
// operation can be one of STOR, APPE, STOU => enumeration ?
Thanks in advance.