title: Use Zend_Form Zend_Form_Element_File for Zend_Mail attachment's
body: <p>I am using Zend_Form , Zend_Form_Element_File for adding an attachment to an email form .
  My file Form element is Like this:</p>
  
  <blockquote>
  <pre><code>    $file = new Zend_Form_Element_File('file');
      $file-&gt;setLabel('File')
               -&gt;setRequired(true)
                -&gt;addValidator('NotEmpty');
  </code></pre>
  </blockquote>
  
  <p>and my send form Controller attachment part is :</p>
  
  <pre><code>            $at = $mail-&gt;createAttachment(file_get_contents($value['file']));
              $at-&gt;disposition = Zend_Mime::DISPOSITION_INLINE;
              $at-&gt;encoding    = Zend_Mime::ENCODING_BASE64;
              $at-&gt;filename    = $value['file']; // get this from posted form
              $mail-&gt;send();
  </code></pre>
  
  <p>My Problem is : The form send a file name to controller witch is useless and email send with empty file attached to it.</p>
  
  <p>My Question is : How can i send full file content to Controller by Zend_Form ? or the file should be upload before sending ?</p>