File Type Validation

Author Message

Paul Kinzett

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.