Checking if the file was already added to confluence before downloading from teamwork and checking if file was uploaded to confluence if not its trying to upload it again.