Method to build upload connection