mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-13 22:06:51 +08:00
avoid confusion about uploadRequired
This commit is contained in:
@ -71,6 +71,8 @@ class FileValidator extends Validator
|
||||
public $message;
|
||||
/**
|
||||
* @var string the error message used when no file is uploaded.
|
||||
* Note that this is the text of the validation error message. To make uploading files required,
|
||||
* you have to set [[skipOnEmpty]] to `false`.
|
||||
*/
|
||||
public $uploadRequired;
|
||||
/**
|
||||
|
Reference in New Issue
Block a user