Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
think
File
validate
think\File::validate PHP Method
File Class Documentation
Exibir arquivo
Open project: top-think/framework
validate()
public
method
设置上传文件的验证规则
public
validate
(
array
$rule
= [] )
$rule
array
验证规则
public function validate($rule = []) { $this->validate = $rule; return $this; }
File
__call
__construct
buildSaveName
check
checkExt
checkImg
checkMime
checkPath
checkSize
error
getError
getImageType
getInfo
getMime
getSaveName
hash
isTest
isValid
move
rule
setSaveName
setUploadInfo
validate