开发者

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(TRU开发者_StackOverflow社区E);  
    $this->addElement($uploaded_photo);                 


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

  • upload_max_filesize
  • post_max_size (must be larger than upload_max_filesize)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜