Sure can, this is untested and it will depend on whether it is the details
or message. And this is CF9 script so you can easily translate this back to
tags.

Catch(Any e) {
  If(e.details contains ' MIME type of the uploaded file image/pjpeg was not
accepted by the server ') {
    //... Do error
    Abort;
  }
}


Regards,
Andrew Scott
http://www.andyscott.id.au/



> -----Original Message-----
> From: Don [mailto:danfar...@hotmail.com]
> Sent: Thursday, 6 January 2011 8:03 AM
> To: cf-talk
> Subject: Can CF catch this specific error?
> 
> 
> I want to try and catch this and only this specific error with CF.
Possible? and
> if so how exactly would I do that?
> 
> coldfusion.tagext.io.FileUtils$InvalidUploadTypeException: The MIME type
> of the uploaded file image/pjpeg was not accepted by the server.
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> Order the Adobe Coldfusion Anthology now!
> http://www.amazon.com/Adobe-Coldfusion-
> Anthology/dp/1430272155/?tag=houseoffusion
> Archive: http://www.houseoffusion.com/groups/cf-
> talk/message.cfm/messageid:340481
> Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
> Unsubscribe: http://www.houseoffusion.com/groups/cf-
> talk/unsubscribe.cfm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340484
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to