Adding change to state In after rename the file. Checking connection is opened before upload or rename