• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ColdFusion Question

Thraxen

Diamond Member
I've got a form that allows files to be uploaded, but I've limited the files that can be uploaded based on the MIME type. Right now I check the MIME type upon upload using the "accept=" parameter in the "cffile" tag. This works except when an improper file type is uploaded the user gets an error screen . For example:

"The MIME type of the uploaded file (application/vnd.ms-excel) was not accepted by the server."

I would prefer to be able to handle this error more gracefully. Is there any way I could direct to a different page where I could explain the error? Or perhaps another way to handle this?

Thanks!



 
Have you tried putting a cftry/cfcatch block around the part that throws the error? Then, you can redirect to another page or display the error in a more user-friendly way.
 
Back
Top