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
29693f68
Commit
29693f68
authored
Jan 08, 2014
by
andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UplodedFile enhasement
parent
e123428c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
UploadedFile.php
framework/yii/web/UploadedFile.php
+10
-0
No files found.
framework/yii/web/UploadedFile.php
View file @
29693f68
...
...
@@ -33,12 +33,20 @@ class UploadedFile extends Object
*/
public
$name
;
/**
* @var string the original base file name
*/
public
$baseName
;
/**
* @var string the path of the uploaded file on the server.
* Note, this is a temporary file which will be automatically deleted by PHP
* after the current request is processed.
*/
public
$tempName
;
/**
* @var string file extension.
*/
public
$extension
;
/**
* @var string the MIME-type of the uploaded file (such as "image/gif").
* Since this MIME type is not checked on the server side, do not take this value for granted.
* Instead, use [[FileHelper::getMimeType()]] to determine the exact MIME type.
...
...
@@ -208,7 +216,9 @@ class UploadedFile extends Object
}
else
{
self
::
$_files
[
$key
]
=
new
static
([
'name'
=>
$names
,
'baseName'
=>
pathinfo
(
$names
,
PATHINFO_FILENAME
),
'tempName'
=>
$tempNames
,
'extension'
=>
strtolower
(
pathinfo
(
$names
,
PATHINFO_EXTENSION
)),
'type'
=>
$types
,
'size'
=>
$sizes
,
'error'
=>
$errors
,
...
...
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