Refactored UploadHelper to use okhttp.