integration of connection checking into upload