Problem file validation (on update) - Yii 1.1.16

Since I’ve updated to 1.1.16, the file validation (only on update) not pass the rule. When I return to 1.1.15, it works. Anyone more?

See if this can help you -

Which is the solution finally? In the issues have no solution.

There are 2 solutions for this problem as follows:

  1. Model (Add following rule in model rules).

array('file_name', 'required', 'on'=>array('update')),

  1. Controller (Add following code in your update action).

$fileInstance = CUploadedFile::getInstance($model, 'file_name');

        if (!empty($fileInstance)) {

                //then save your file


Hope this helps you.