I try to upload a file to a directory using setDestination but the file ends
op in /tmp, whatever I try. Here's my code:
class forms_ImportForm extends Zend_Form {
public function __construct($options = null) {
parent::__construct($options);
$this->setName('import');
$uploadFile = new Zend_Form_Element_File('extract');
$uploadFile->setLabel('File') ->setDestination(APPLICATION_PATH
."/../data");
$submit = new Zend_Form_Element_Submit('submit');
$submit->setLabel('Uploaden');
$this->addElements(array($uploadFile, $submit));
}
}
The method is called because the label is displayed and if I mutilate the
file location I get an error. Any suggestions greatly appreciated.
Timmo
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/setDestination-in-Zend-Form-Element-File-tp2316644p2316644.html
Sent from the Zend Framework mailing list archive at Nabble.com.