开发者

error in file input

开发者 https://www.devze.com 2023-04-07 16:13 出处:网络
hi guys this error is rendered when i submit my form this error is File \'captured_photo\' exceeds the defined ini size

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

精彩评论

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

关注公众号