add a file send fucntion by chunk