aattia
aattia

Reputation: 39

error in file input

hi guys this error is rendered when i submit my form this error is
File 'captured_photo' exceeds the defined ini size i made a trial to change the php.ini to 10M but still has the error

$uploaded_photo = $this->createElement('file', 'uploaded_photo')
                ->setLabel('upload image 2:')
                ->addFilter(new Zend_Filter_HtmlEntities())
                ->addFilter(new Zend_Filter_StripTags())
                //->setMaxFileSize(10 * 1024 * 1024)
                ->addFilter("StringTrim");      
                //->setRequired(TRUE);  
    $this->addElement($uploaded_photo);                 

Upvotes: 0

Views: 62

Answers (1)

Phil
Phil

Reputation: 164766

There are several configuration directives that affect file uploads. They are

Upvotes: 1

Related Questions