rename duplicate uploads in checkName method, use scandir and iterate over existing uploads in a do while loop