Example is GitHub comments that only allow uploading images and PDF. What happens if someone uploads malicious code after he changed the file extension to something like PNG or PDF?
Also don't get focused on the GitHub example. In am wondering in general if changing a files extension (not totally-not-virus.mp4.exe, but virus.pdf or virus.txt) can cause trouble.