Transfer filename and file contents to serverside.