yiisoft/yii2 — pull request #2975 by githubjeka (2014-04-04 08:28:09+00:00)
Title: Add new guide upload-file

Comments
1. UploadedFile::getInstances($model, 'file'); sees only one file if not set ```'file[]'```

```php
field($model, 'file[]')->fileInput(['multiple' => '']) ?>
```

2. ```$form->errorSummary(..)``` not return all errors of file attribute, but only the last.
So I had to invent.

```php
if ($model->hasErrors()) {
echo '

';
print_r($model->getErrors());
echo '

';
}
```

So it should be?