Suspend file validation on Zend Framework
Posted
by dimitris mistriotis
on Stack Overflow
See other posts from Stack Overflow
or by dimitris mistriotis
Published on 2010-04-19T18:38:53Z
Indexed on
2010/04/19
18:43 UTC
Read the original article
Hit count: 319
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?
© Stack Overflow or respective owner