Commit aabd69af by Carsten Brandt

avoid confusion about uploadRequired

parent 3e443b3c
...@@ -71,6 +71,8 @@ class FileValidator extends Validator ...@@ -71,6 +71,8 @@ class FileValidator extends Validator
public $message; public $message;
/** /**
* @var string the error message used when no file is uploaded. * @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; public $uploadRequired;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment