Class File
Check if the input is valid file
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\File
Direct known subclasses
Wei\Validator\ImageIndirect known subclasses
Wei\Upload
public
boolean
|
|
protected
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
public
integer
|
|
public
string
|
|
public
|
|
public
|
|
protected
array
|
|
public
string|false
|
|
public
string
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$notFoundMessage
|
#
'%name% is not found or not readable'
|
protected
string
|
$maxSizeMessage
|
#
'%name% is too large(%sizeString%), allowed maximum size is %maxSizeString%'
|
protected
string
|
$minSizeMessage
|
#
'%name% is too small(%sizeString%), expected minimum size is %minSizeString%'
|
protected
string
|
$extsMessage
|
#
'%name% extension(%ext%) is not allowed, allowed extension: %exts%'
|
protected
string
|
$excludeExtsMessage
|
#
'%name% extension(%ext%) is not allowed, not allowed extension: %excludeExts%'
|
protected
string
|
$mimeTypeNotDetectedMessage
|
#
'%name% mime type could not be detected'
|
protected
string
|
$mimeTypesMessage
|
#
'%name% mime type "%mimeType%" is not allowed'
|
protected
string
|
$excludeMimeTypesMessage
|
#
'%name% mime type "%mimeType%" is not allowed'
|
protected
string
|
$negativeMessage
The common message for negative validator |
#
'%name% must be a non-existing file'
|
protected
string|false
|
$file
The absolute file path, or false when file not found or not readable |
|
protected
string
|
$originFile
The origin name of uploaded file, if the input is not uploaded file array, the origin name is equals to $this->file |
|
protected
integer
|
$size
The detected byte size of file |
|
protected
string
|
$sizeString
The formatted file size, e.g. 1.2MB, 10KB |
|
protected
integer
|
$maxSize
The maximum file size limit |
#
0
|
protected
string
|
$maxSizeString
The formatted maximum file size, e.g. 1.2MB, 10KB |
|
protected
integer
|
$minSize
The minimum file size limit |
#
0
|
protected
string
|
$minSizeString
The formatted minimum file size, e.g. 1.2MB, 10KB |
|
protected
string
|
$ext
The detected file extension |
|
protected
array
|
$exts
The allowed file extensions |
#
array()
|
protected
array
|
$excludeExts
The excluding file extensions |
#
array()
|
protected
string
|
$mimeType
The detected file mime type |
|
protected
array
|
$mimeTypes
The allowed file mime types |
#
array()
|
protected
array
|
$excludeMimeTypes
The excluding file mime types |
#
array()
|
protected
string
|
$units
The file size unit |
#
array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB')
|
protected
string|null
|
$magicFile
The magic database file to detect file mime type |
$errors,
$name,
$negative,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|