add send files

Add send files function on server and client