Checks internet connection on upload