I have a simple form that has email and file to upload, it's displaying correctly, and after the submit it goes to the result page i set, correctly. But, i can't find the file on the server now where.
here is my code:
Form:
public function init()
{
/* Form Elements & Other Definitions Here ... */
$this->setName('form-counting');
$email = new Zend_Form_Element_Text('email');
$email -> setLabel('Name:')
->addFilter('StripTags')
->addValidator('NotEmpty', true)
->addValidator('EmailAddress')
->setRequired(true);
$this->addElement($email);
$UP_file = new Zend_Form_Element_File('UP_file');
$UP_file->setLabel('Upload files:')
->setRequired(true)
$this->addElement($UP_file);
$this->addElement('submit', 'submit', array(
'label' => 'GO',
'ignore' => true
));
}
what am i doing wrong? Thanks