There are things called Checksums that compute the integrity of the data that was transferred over the medium. It can be 100% guaranteed before the transmission is accepted by the receiving device. This is all part of the file transfer communication, I dont think you guys need to worry about these issues that have been solved decades ago.