Is there a way to validate the mime type a file that is being uploaded using CFINPUT type="FILE" prior to the user hitting the submit button?
Dan Bracuk - 02 Sep 2007 13:43 GMT
You can't do it with cf code only. You have to write some javascript and call it on the input's onBlur or onChange event.
Dinghus - 03 Sep 2007 07:57 GMT
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.