If you nest your cffile upload tag into a <cftry><cfcatch> set of tags, you
can avoid that ugly message.

William

-----Original Message-----
From: Imperial, Robert [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 08, 2008 12:43 PM
To: cf-newbie
Subject: catching mime type

Hello again,

 

I am working on a simple upload utility and was wondering if there is a
way to catch the mime type before it hits the cffile action? I am using
the filter attribute to limit the upload to pdf docs but of course that
displays an ugly cf error message that I'd rather head off beforehand.
Any ideas on how to go about checking for this before the cffile goes to
work? TIA!

 

Bob

 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4230
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to