built up the client for file upload