Hi all,
I have a form that contains a file input that gets processed by a cffile that accepts only jpg and gif files. If the user tries to upload another type of file an error is thrown and they are taken to my ugly boilerplate error template that catches all errors. I would much rather just show them some text on the page they are on that reads "You may only upload files types of jpg or gif." How can I do this?
I have a form that contains a file input that gets processed by a cffile that accepts only jpg and gif files. If the user tries to upload another type of file an error is thrown and they are taken to my ugly boilerplate error template that catches all errors. I would much rather just show them some text on the page they are on that reads "You may only upload files types of jpg or gif." How can I do this?