diff --git a/framework/validators/CFileValidator.php b/framework/validators/CFileValidator.php index 07c90e048..b74d104a5 100644 --- a/framework/validators/CFileValidator.php +++ b/framework/validators/CFileValidator.php @@ -26,6 +26,7 @@ * * When using CFileValidator with an active record, the following code is often used: *
+ * $model->attribute = CUploadedFile::getInstance($model, "attribute");
* if($model->save())
* {
* // single upload