SilverFire - Dmitry Naumenko
8298588d5b
Separated `limit` and `formattedLimit` for translations in FileValidator
9 years ago
SilverFire - Dmitry Naumenko
b83803460b
Fixes #8466 . FileValidator: units in tooBig and tooSmall error messsages are formated
9 years ago
SilverFire - Dmitry Naumenko
898ffa57c4
FileValidator - updated PHPDoc
9 years ago
SilverFire - Dima Naumenko
a6e1ba2cf6
Fixed mb_ functions calls to use UTF-8 or app charset
9 years ago
Lorenzo Milesi
a6fc02345e
FileValidator->getSizeLimit: check also php's post_max_size
...
- return the lowerest of `post_max_size` or `upload_max_filesize`
- Raised warning for misconfigured PHP
close #8373
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
PowerGamer1
4f25734509
Update FileValidator.php
...
Implementation of https://github.com/yiisoft/yii2/issues/8995
9 years ago
nkovacs
b4d22cfe63
Fix documentation
...
wrongType -> wrongExtension
9 years ago
Alexander Mohorev
68c30c1034
Replace aliases of functions
9 years ago
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
9 years ago
Carsten Brandt
e83b479dfb
improved validator documentation
...
fixes #7472
10 years ago
Qiang Xue
d13d274d05
renamed $object to $model
10 years ago
Alexander Makarov
48ec791e4a
Fixes #5587 : `json_encode` is now used with `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE` where it makes sense, also it is now default for `Json::encode()`
10 years ago
Alexander Makarov
11812af1c1
Fixed formatting, initialized options array
10 years ago
Qiang Xue
6dd2203a5c
Fixes #4566 : Added client validation support for image validator
10 years ago
Tomek Romik
8c5c4c503b
Fix lines
10 years ago
Tomek Romik
ed3564c1cf
Added client-side image validation
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
10 years ago
Tomek Romik
b3f0f7dceb
Fixed typo and inconsistent conditionals
10 years ago
Tomek Romik
d1c2b137b3
Added client-side file validator
10 years ago
Qiang Xue
a2e73f9900
Fixes #4370 : fileinfo extension is required for FileValidator.
10 years ago
Qiang Xue
9fd920e2d1
minor refactoring of FileValidator.
10 years ago
Carsten Brandt
aabd69afcf
avoid confusion about uploadRequired
10 years ago
Qiang Xue
084819b84c
refactored file validator.
10 years ago
Mark
a89d574a20
updated FileValidator , CHANGELOG.md , UPGRADE.md guides , tests fixed
10 years ago
Mark
64deaad75d
undo changes
10 years ago
Mark
42643e3747
type validation adjusted
10 years ago
Mark
d5a1a74864
fixed mime type file info
10 years ago
MarcioCamello
1bad91bd4e
Update FileValidator.php
10 years ago
MarcioCamello
431915c439
mimeTypes Validator is wrong
...
I'm find error
```php
Wrong
} elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file->tempName), $this->mimeTypes, true)) {
Correct
} elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file), $this->mimeTypes, true)) {
```
Not need call '$file->tempName' because getMimeType get object $_FILE => $file, so use $file and validator works fine
10 years ago
Mark
c52c063ca6
file validator added mime - types , image validator fixed
10 years ago
Carsten Brandt
435747cf98
apidoc and codestyle fixes
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Zhandos
2e84fcb0b0
Update FileValidator.php
...
fix tabs
11 years ago
Zhandos Nuftiev
b3b9bd353e
fix isEmpty method for file validator.
11 years ago
Qiang Xue
b64f618545
refactored file validator.
11 years ago
Qiang Xue
807223efbf
Fixes #1412
11 years ago
Qiang Xue
a4a72033d6
Fixes #1412 : `FileValidator` still triggers `uploadRequired` error in some case when `skipOnEmpty` is true and no upload is provided
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Alexander Makarov
e14cac638a
Improved plural messages for validators
11 years ago
Qiang Xue
72db6ffb1a
Fixes #1454 : refactored FileValidator.
11 years ago
Qiang Xue
cb4a8c764c
Refactored validators.
11 years ago
Gudz Taras
11c78cb4fb
Changed validateFile() method access from protected to public, fixed hasErrors check
11 years ago
Gudz Taras
960cb499bd
Fixed typos [skip ci]
11 years ago
Carsten Brandt
cfc57c20f0
Allow ITU message format in validator messages
...
fixes #991
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
c306fccd46
fixed FileValidator after UploadedFile refactoring
...
fixes #845
11 years ago
Carsten Brandt
7fa81949bf
various documentation changes
11 years ago