How to call validate function before uploading ?

Jun 11, 2009 at 6:47 AM

Is there any method to add a validating function before uploading .

For example to validate form's inputs that user fill up ,so as to make sure is there a error input the form from the client-side.