When a video is uploaded, it is checked against the database, and flags the video as a copyright violation if a match is found.