Zend_Form_Element_File not working
===

The following zendframework form not working properly :

    <?php
    
    class Application_Form_Auth extends Zend_Form
    {
    
        public function init()
        {   $this->setAttrib('enctype', 'multipart/form-data');
            $this->setMethod('post');
    	
    		
            $username = $this->createElement('text','username');
            $username->setLabel('Username:')
                    ->setAttrib('size',10);
    				
    		$password=$this->createElement('password','password');
    		$password->setLabel('Password')
    		         ->setAttrib('size',10);
    				 
    
    
            $file = new Zend_Form_Element_File('file');
    
            $file->setLabel('File')
    
                ->setDestination('/data/uploads')
    
                ->setRequired(true);
    		
    		$reg=$this->createElement('submit','submit');
    		$reg->setLabel('save');		 		
                
            $this->addElements(array(
            $username,
            $password,
            $file,
            $reg
    		));
    		
    		
    		
    		return $this;
        }
    
    
    }
    ?>

The problem resides in :
 

    ->setDestination('/data/uploads')


when i remove this line of code the form working properly . i have the uploads folder in /data/uploads and have 777 permission for the. How can i resolve this.Thanks 