title: Upload an image using Zend Framework?
body: <p>I want to upload an image in Zend-framework.</p>
  
  <p>In Application_Form_Test.php I write following code....</p>
  
  <pre><code>uploadImage = new Zend_Form_Element_File('uploadImage');
  $uploadImage-&gt;setLabel("Upload Image ")
              -&gt;setRequired(true)               
              -&gt;addValidator('Extension', false, 'jpeg,png')
              -&gt;getValidator('Extension')-&gt;setMessage('This file type is not supportted.');
  </code></pre>
  
  <p>In the testAction() I write following code.....</p>
  
  <pre><code>$upload = new Zend_File_Transfer_Adapter_Http();
  $upload-&gt;addValidator('Size', false, 52428800, 'image');
  $upload-&gt;setDestination('uploads');
  $files = $upload-&gt;getFileInfo();
  foreach ($files as $file =&gt; $info) {
      if ($upload-&gt;isValid($file)) {
           $upload-&gt;receive($file);
      }
  }
  </code></pre>
  
  <p>Code is running successfully But I am not getting that image to the destination folder?</p>
  
  <p>What may be the problem....?
  Please help me.....</p>
  
  <p>Thanks in advance....</p>