The long answer or longer answer is that CF can't tell you
what it is until it gets to the server. Don't forget (it's easy to
do) that CF is SERVER side. That is why you will need some
Javascript to verify what the file type is before it is
submitted.