About to refactor to allow non-text file transfers
Calculate actual file size before file transfer