Filetransfer ends successfully after original file is overwritten and file on destination is incomplete