9d327baa8b
coding style fixes
2016-05-26 11:19:32 +02:00
191f2a4943
fixed phpdoc type names
2016-02-25 20:24:32 +01:00
66c6268e5f
FileValidator: updated guide-ru,en, PHP; updated tests
2016-02-24 09:05:29 +02:00
7aef671872
Refactored FileHelper::validateMimeType, js validaton, PHPDocs
2016-02-24 00:40:34 +02:00
a4c68b5278
#5469 added mimetype mask validation feature
2016-02-24 00:40:34 +02:00
f0c666cd6f
Update FileValidator phpDoc: see link added to maxSize
2016-02-15 15:14:39 +03:00
07c3403f27
Update FileValidator phpDoc: see link added to maxSize
2016-02-15 15:12:36 +03:00
e23f47f49a
Update phpDoc maxSize of FileValidator
2016-02-15 14:51:39 +03:00
f620f4de90
phpdoc fixes
2016-02-07 19:48:13 +01:00
e41c2e3946
validators PHPdoc
2016-02-07 19:16:31 +01:00
9bd0810bce
FileValidator - fixed fix for error message on UPLOAD_ERR_FORM_SIZE (7f65704)
2016-01-25 21:36:11 +02:00
7f657047da
FileValidator - fixed error message on UPLOAD_ERR_FORM_SIZE
...
Closes #10660
2016-01-25 20:14:51 +02:00
8298588d5b
Separated limit
and formattedLimit
for translations in FileValidator
2015-12-19 22:08:52 +02:00
b83803460b
Fixes #8466 . FileValidator: units in tooBig and tooSmall error messsages are formated
2015-12-19 21:38:29 +02:00
898ffa57c4
FileValidator - updated PHPDoc
2015-12-06 07:12:20 +02:00
d5eff682a0
Merge branch 'patch-1' of https://github.com/PowerGamer1/yii2 into PowerGamer1-patch-1
2015-12-05 21:22:24 +02:00
a6e1ba2cf6
Fixed mb_ functions calls to use UTF-8 or app charset
2015-11-17 09:02:22 +02:00
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
2015-08-02 23:37:46 +02:00
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
4f25734509
Update FileValidator.php
...
Implementation of https://github.com/yiisoft/yii2/issues/8995
2015-07-03 20:36:43 +03:00
b4d22cfe63
Fix documentation
...
wrongType -> wrongExtension
2015-06-30 14:12:13 +02:00
68c30c1034
Replace aliases of functions
2015-06-29 22:59:22 +03:00
ae42a054bb
PSR-2 spaces, commas, etc
2015-06-09 00:05:06 +03:00
e83b479dfb
improved validator documentation
...
fixes #7472
2015-02-26 18:40:13 +01:00
d13d274d05
renamed $object to $model
2014-10-31 14:56:59 -04:00
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()
2014-10-19 18:50:46 +04:00
11812af1c1
Fixed formatting, initialized options array
2014-09-06 01:48:12 +04:00
6dd2203a5c
Fixes #4566 : Added client validation support for image validator
2014-08-02 22:36:22 -04:00
8c5c4c503b
Fix lines
2014-08-02 17:04:42 -04:00
ed3564c1cf
Added client-side image validation
2014-08-02 17:04:42 -04:00
0edd8bc65a
Fixed missing and incorrect phpdoc
2014-07-25 17:26:35 +04:00
b3f0f7dceb
Fixed typo and inconsistent conditionals
2014-07-23 22:41:35 -04:00
d1c2b137b3
Added client-side file validator
2014-07-23 22:41:35 -04:00
a2e73f9900
Fixes #4370 : fileinfo extension is required for FileValidator.
2014-07-22 15:06:14 -04:00
9fd920e2d1
minor refactoring of FileValidator.
2014-07-22 11:29:04 -04:00
aabd69afcf
avoid confusion about uploadRequired
2014-07-16 11:43:44 +02:00
084819b84c
refactored file validator.
2014-06-14 16:21:59 -04:00
a89d574a20
updated FileValidator , CHANGELOG.md , UPGRADE.md guides , tests fixed
2014-06-14 22:11:58 +04:00
64deaad75d
undo changes
2014-06-14 21:59:10 +04:00
42643e3747
type validation adjusted
2014-06-14 12:42:12 +04:00
d5a1a74864
fixed mime type file info
2014-06-11 11:53:30 +04:00
1bad91bd4e
Update FileValidator.php
2014-06-10 17:14:12 -03:00
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
2014-06-10 16:35:21 -03:00
c52c063ca6
file validator added mime - types , image validator fixed
2014-06-10 14:14:19 +04:00
435747cf98
apidoc and codestyle fixes
2014-03-26 23:03:18 +01:00
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
2e84fcb0b0
Update FileValidator.php
...
fix tabs
2014-03-10 23:17:29 +05:00
b3b9bd353e
fix isEmpty method for file validator.
2014-03-10 23:10:47 +05:00
b64f618545
refactored file validator.
2014-02-01 09:15:40 -05:00