send file thread