Commit 1a7e750f by Qiang Xue

Merge pull request #2889 from pgaultier/fix/uploadedFile

Fix/uploaded file
parents 39667aa6 3da39f03
...@@ -73,6 +73,7 @@ Yii Framework 2 Change Log ...@@ -73,6 +73,7 @@ Yii Framework 2 Change Log
- Bug: Fixed `$model->load($data)` returned `true` if `$data` and `formName` were empty (samdark) - Bug: Fixed `$model->load($data)` returned `true` if `$data` and `formName` were empty (samdark)
- Bug: Fixed issue with `ActiveRelationTrait` preventing `ActiveQuery` from clearing events and behaviors on clone (jom) - Bug: Fixed issue with `ActiveRelationTrait` preventing `ActiveQuery` from clearing events and behaviors on clone (jom)
- Bug: `Query::queryScalar` wasn't making `SELECT DISTINCT` queries subqueries (jom) - Bug: `Query::queryScalar` wasn't making `SELECT DISTINCT` queries subqueries (jom)
- Bug: Fixed use `$files` instead of `self::$_files[$key]` to allow inheritance (pgaultier)
- Enh #46: Added Image extension based on [Imagine library](http://imagine.readthedocs.org) (tonydspaniard) - Enh #46: Added Image extension based on [Imagine library](http://imagine.readthedocs.org) (tonydspaniard)
- Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard) - Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
- Enh #497: Removed `\yii\log\Target::logUser` and added `\yii\log\Target::prefix` to support customizing message prefix (qiangxue) - Enh #497: Removed `\yii\log\Target::logUser` and added `\yii\log\Target::prefix` to support customizing message prefix (qiangxue)
......
...@@ -129,7 +129,7 @@ class UploadedFile extends Object ...@@ -129,7 +129,7 @@ class UploadedFile extends Object
$results = []; $results = [];
foreach ($files as $key => $file) { foreach ($files as $key => $file) {
if (strpos($key, "{$name}[") === 0) { if (strpos($key, "{$name}[") === 0) {
$results[] = self::$_files[$key]; $results[] = $file;
} }
} }
return $results; return $results;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment