Are you trying to catch on upload, or catching as soon as you start trying to process the uploaded file.
If the latter, in the top of your cftry, evaluate cfile.serverfile extension (don't have the docs in front of me for the exact var that holds it) If it is not an allowable type, then use cfthrow and throw a custom exception. Then in you cfcatch, trap for that custom exception. pretty simple to do. On Thu, Jul 30, 2009 at 2:12 PM, Mark Davis<[email protected]> wrote: > hey gang, > > I have some pages where users upload photos and resumes. The mime types > allowed are limited to standard stuff. The page is wrapped in a try/catch, > that currently logs everything to one certain log file. We get a lot of > "errors" where the user is trying to upload an exe as a photo and crazy > stuff like that. I want a specific cfcatch type="" to catch only those > errors for mime type exceptions, handle those one way, then catch everything > else and handle a different way. I have the everything else, but I am > having issues figuring out the mime type catch. anyone? thanks > > > > Mark Davis | Developer > > ......................................................................................................................... > > Round Table Group, Inc. > > (281) 717-4575 > > [email protected] > > www.roundtablegroup.com > > ......................................................................................................................... > > > > The Leading Authority in Expert Witness Search & ReferralTM > > CONFIDENTIALITY NOTE: This e-mail, and any attachments thereto, is intended > only for use by the addressee(s) named in the message originated by me and > may contain legally privileged and/or confidential information. If the > reader of this message is not the intended recipient, you are hereby > notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this email in > error, please notify me immediately by telephone and permanently delete the > original and any copy of the email, and any printout thereof. Thank you. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [email protected] For more options, visit http://groups.google.com/group/houcfug?hl=en -~----------~----~----~----~------~----~------~--~---
