@Thomas Weidner
thank u for ur concern sir after ur suggestion i have made some
modifications but still not working
===this is my file form===
<?php
class Application_Form_Fuldf extends Zend_Form
{
public function init()
{
$this->setMethod('post');
$this->setAttrib('enctype', 'multipart/form-data');
$this ->addElement('file','file1',array('label'=>'File1'));
$this ->setDestination($_SERVER['DOCUMENT_ROOT'].'/fileupload/');
$submit = new Zend_Form_Element_Submit('submit');
$this ->addElement('submit','submit');
}
}
my upload action is
public function uploadAction()
{
// action body
$up = new Application_Form_Fuldf();
$this->view->form = $up;
$a = $up->getvalues(file1);
if($this->getRequest()->isPost()) {
if($up->isValid($_POST)) {
$files = $upload->getFileName();
}
}
please make the code work
--
View this message in context:
http://n4.nabble.com/File-upload-problem-tp663743p1597656.html
Sent from the Zend Framework mailing list archive at Nabble.com.