Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
960cb499
Commit
960cb499
authored
Nov 05, 2013
by
Gudz Taras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typos [skip ci]
parent
e3981be1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
FileValidator.php
framework/yii/validators/FileValidator.php
+4
-2
No files found.
framework/yii/validators/FileValidator.php
View file @
960cb499
...
@@ -26,6 +26,7 @@ class FileValidator extends Validator
...
@@ -26,6 +26,7 @@ class FileValidator extends Validator
* separated by space or comma (e.g. "gif, jpg").
* separated by space or comma (e.g. "gif, jpg").
* Extension names are case-insensitive. Defaults to null, meaning all file name
* Extension names are case-insensitive. Defaults to null, meaning all file name
* extensions are allowed.
* extensions are allowed.
* @see wrongType
*/
*/
public
$types
;
public
$types
;
/**
/**
...
@@ -46,6 +47,7 @@ class FileValidator extends Validator
...
@@ -46,6 +47,7 @@ class FileValidator extends Validator
* @var integer the maximum file count the given attribute can hold.
* @var integer the maximum file count the given attribute can hold.
* It defaults to 1, meaning single file upload. By defining a higher number,
* It defaults to 1, meaning single file upload. By defining a higher number,
* multiple uploads become possible.
* multiple uploads become possible.
* @see tooMany
*/
*/
public
$maxFiles
=
1
;
public
$maxFiles
=
1
;
/**
/**
...
@@ -76,9 +78,10 @@ class FileValidator extends Validator
...
@@ -76,9 +78,10 @@ class FileValidator extends Validator
public
$tooSmall
;
public
$tooSmall
;
/**
/**
* @var string the error message used when the uploaded file has an extension name
* @var string the error message used when the uploaded file has an extension name
* that is not listed in [[
extension
s]]. You may use the following tokens in the message:
* that is not listed in [[
type
s]]. You may use the following tokens in the message:
*
*
* - {attribute}: the attribute name
* - {attribute}: the attribute name
* - {file}: the uploaded file name
* - {extensions}: the list of the allowed extensions.
* - {extensions}: the list of the allowed extensions.
*/
*/
public
$wrongType
;
public
$wrongType
;
...
@@ -87,7 +90,6 @@ class FileValidator extends Validator
...
@@ -87,7 +90,6 @@ class FileValidator extends Validator
* You may use the following tokens in the message:
* You may use the following tokens in the message:
*
*
* - {attribute}: the attribute name
* - {attribute}: the attribute name
* - {file}: the uploaded file name
* - {limit}: the value of [[maxFiles]]
* - {limit}: the value of [[maxFiles]]
*/
*/
public
$tooMany
;
public
$tooMany
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment