Yii Framework Forum: Yii 1.1.14 - File Validation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Yii 1.1.14 - File Validation Rate Topic: -----

#1 User is offline   Sergey Poyarkov 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-June 11
  • Location:Russia

Posted 12 August 2013 - 09:10 AM

Problem appeared after framework updating to v1.1.14. I can't upload image, it always says that "image can not be empty".


public function rules(){
        return array(
            array('image', 'file', 'maxSize'=>$this->getFileMaxSize(), 'maxFiles'=>$this->getMaxFiles(), 'types'=>$this->getAvailableTypes(), 'allowEmpty'=>false, 'safe'=>true, 'on'=>'insert'),
        );
    }


0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,591
  • Joined: 17-January 09
  • Location:Russia

Posted 12 August 2013 - 12:56 PM

If you're sure that it does't work with 1.1.13 please report to github. A minimal application example would be handy to speed things up when solving the issue. Thanks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users