Set up sending Media to the server