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
4b15c77a
Commit
4b15c77a
authored
Jan 08, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://github.com/yiisoft/yii2
parents
b23bade2
6423c412
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
UploadedFile.php
framework/yii/web/UploadedFile.php
+16
-0
No files found.
framework/CHANGELOG.md
View file @
4b15c77a
...
@@ -80,6 +80,7 @@ Yii Framework 2 Change Log
...
@@ -80,6 +80,7 @@ Yii Framework 2 Change Log
-
New #66:
[
Auth client library
](
https://github.com/yiisoft/yii2-authclient
)
OpenId, OAuth1, OAuth2 clients (klimov-paul)
-
New #66:
[
Auth client library
](
https://github.com/yiisoft/yii2-authclient
)
OpenId, OAuth1, OAuth2 clients (klimov-paul)
-
New #1393:
[
Codeception testing framework integration
](
https://github.com/yiisoft/yii2-codeception
)
(
Ragazzo
)
-
New #1393:
[
Codeception testing framework integration
](
https://github.com/yiisoft/yii2-codeception
)
(
Ragazzo
)
-
New #1438:
[
MongoDB integration
](
https://github.com/yiisoft/yii2-mongodb
)
ActiveRecord and Query (klimov-paul)
-
New #1438:
[
MongoDB integration
](
https://github.com/yiisoft/yii2-mongodb
)
ActiveRecord and Query (klimov-paul)
-
Enh #1839: Added support for getting file extension and basename from uploaded file (anfrantic)
2.
0.0 alpha, December 1, 2013
2.
0.0 alpha, December 1, 2013
---------------------------
---------------------------
...
...
framework/yii/web/UploadedFile.php
View file @
4b15c77a
...
@@ -163,6 +163,22 @@ class UploadedFile extends Object
...
@@ -163,6 +163,22 @@ class UploadedFile extends Object
}
}
return
false
;
return
false
;
}
}
/**
* @return string original file base name
*/
public
function
getBaseName
()
{
return
pathinfo
(
$this
->
name
,
PATHINFO_FILENAME
);
}
/**
* @return string file extension
*/
public
function
getExtension
()
{
return
strtolower
(
pathinfo
(
$this
->
name
,
PATHINFO_EXTENSION
));
}
/**
/**
* @return boolean whether there is an error with the uploaded file.
* @return boolean whether there is an error with the uploaded file.
...
...
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