Reputation: 39
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
Reputation: 164766
There are several configuration directives that affect file uploads. They are
upload_max_filesize
)Upvotes: 1