title: path to be given in setDestination method of Zend_Form_Element_File in Zend Framework
body: <p>I am trying to upload a file in Zend framework. I have following code in my form:</p>
  
  <pre><code> $this-&gt;addElementPrefixPath('App', 'App/');
              $this-&gt;setName('upload');
      $this-&gt;setAttrib('enctype', 'multipart/form-data');
  
      $description = new Zend_Form_Element_Text('description');
      $description-&gt;setLabel('Description')
              -&gt;setRequired(true)
              -&gt;addValidator('NotEmpty');
      $file = new Zend_Form_Element_File('file');
      $path="/images";
      $file-&gt;setDestination($path)
              -&gt;setLabel('File')
              -&gt;setRequired(true)
              -&gt;addValidator('NotEmpty');  
  
      $submit = new Zend_Form_Element_Submit('submit');
  
      $submit-&gt;setLabel('Upload');
  
      $this-&gt;addElements(array($description, $file, $submit));
  </code></pre>
  
  <p>I am using netbeans and I have one folder named images under public folder. I want that all files are uploaded into images folder but when I run the project it gives the error as</p>
  
  <p>The given destination is not a directory or does not exist </p>
  
  <p>If I give the full path as <code>C:\Users\398853\Documents\NetBeansProjects\ZendWithFileUpload\public\images</code> then it runs fine and the file gets uploaded into images folder. But when I give <code>$path='/images'</code> It says above error'Why? What should be the path given?Thanks.</p>