file transfer cancel function by tian 20131211
fix conflict