title: how to implement file upload in Zend?
body: <p>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.</p>
  
  <p>here is my code:</p>
  
  <p>Form:</p>
  
  <pre><code> public function init()
      {
          /* Form Elements &amp; Other Definitions Here ... */
  
          $this-&gt;setName('form-counting');
  
          $email = new Zend_Form_Element_Text('email');
          $email -&gt; setLabel('Name:')
                      -&gt;addFilter('StripTags')
                      -&gt;addValidator('NotEmpty', true)
                      -&gt;addValidator('EmailAddress')
                      -&gt;setRequired(true);
          $this-&gt;addElement($email);
  
          $UP_file = new Zend_Form_Element_File('UP_file');
          $UP_file-&gt;setLabel('Upload files:')
              -&gt;setRequired(true)
          $this-&gt;addElement($UP_file);
  
  
          $this-&gt;addElement('submit', 'submit', array(
              'label'    =&gt; 'GO',
              'ignore'   =&gt; true
          ));
  
      }
  </code></pre>
  
  <p>what am i doing wrong? Thanks</p>