Suspend file validation on Zend Framework
- by dimitris mistriotis
Hi,
Currently on my application I have a form where I ask the user to upload an image file to be used as a logo. I want to allow the user to reset that to nothing by supplying no file (by just pressing the upload button from the browser).
In this scenario the only thing left is to suspend file validation when no file is included.
Currently I get the *self::NO_FILE* error from the *Zend_Validate_File_Upload* class.
Is there any way to suspend the validation so that nothing will be checked if no file has been provided?