implement server to receive a file