Sam
06967f9018
Fixes #13254 : Core validators no longer require Yii::$app to be set
8 years ago
Nikola Kovacs
f5beaf3edf
Make validator getClientOptions public
...
This allows implementing custom client-side validation
without extending every validator.
Fixes #11163
close #13145
8 years ago
Alexey Rogachev
76e253e140
`yii\validators\Validator` - added separate methods for client-side validation options
...
Closes #11163
8 years ago
Robert Korulczyk
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
SilverFire - Dmitry Naumenko
494842636e
📖 Fixed `client-side` and `server-side` grammar in all files
8 years ago
Nikola Kovacs
9d327baa8b
coding style fixes
8 years ago
Carsten Brandt
191f2a4943
fixed phpdoc type names
9 years ago
SilverFire - Dmitry Naumenko
66c6268e5f
FileValidator: updated guide-ru,en, PHP; updated tests
9 years ago
SilverFire - Dmitry Naumenko
7aef671872
Refactored FileHelper::validateMimeType, js validaton, PHPDocs
9 years ago
kirSeNN
a4c68b5278
#5469 added mimetype mask validation feature
9 years ago
githubjeka
f0c666cd6f
Update FileValidator phpDoc: see link added to maxSize
9 years ago
githubjeka
07c3403f27
Update FileValidator phpDoc: see link added to maxSize
9 years ago
githubjeka
e23f47f49a
Update phpDoc maxSize of FileValidator
9 years ago
Carsten Brandt
f620f4de90
phpdoc fixes
9 years ago
Carsten Brandt
e41c2e3946
validators PHPdoc
9 years ago
SilverFire - Dmitry Naumenko
9bd0810bce
FileValidator - fixed fix for error message on UPLOAD_ERR_FORM_SIZE ( 7f65704
)
9 years ago
SilverFire - Dmitry Naumenko
7f657047da
FileValidator - fixed error message on UPLOAD_ERR_FORM_SIZE
...
Closes #10660
9 years ago
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