update the file on the server