filetransfer: fix rejection of incoming file