Sunday 14 October 2007 8:50:10 pm
Hi I have a custom class and a form which allows anyone to create objects of this class on the website. I have created a template file called file_validation.tpl which contains a template operator which will validate a file based on the mime type. The file validation works fine, but what I would like to happen is if the file is not valid then reload the form and display a message otherwise submit the form. Basically the same way as how edit_validation.tpl works. Does anyone have any ideas on how I could get this to work?
Cheers, Paul
|