Start of checking for if files needs to be uploaded