yes, that's exactly what you should use. i have checked and
the wrong
mime type throws exception of application type, so:
<cftry>
<cffile action="upload" destination="somefolder"
filefield="form.yourfilefieldnamehere" accept="text/csv"
nameconflict="whichever_option_you_use">
<cfcatch type="application">
your wrong file type handling code goes here. depends on how
you want to
handle it: show an error message on the same page and cancel
form
submitting or redirect to some error page or whaever you want
to do.
</cfcatch>
</cftry>
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com