Create connect to server and upload a file