validators\FileValidator $extensions

$extensions public property

A list of file name extensions that are allowed to be uploaded. This can be either an array or a string consisting of file extension names separated by space or comma (e.g. "gif, jpg"). Extension names are case-insensitive. Defaults to null, meaning all file name extensions are allowed.

See also $wrongExtension for the customized message for wrong file type.

public array|string $extensions = null
doc_Yii
2016-10-30 17:13:38
Comments
Leave a Comment

Please login to continue.