diff --git a/framework/validators/FileValidator.php b/framework/validators/FileValidator.php index 77e49c48ae..90f95803d8 100644 --- a/framework/validators/FileValidator.php +++ b/framework/validators/FileValidator.php @@ -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; /**