Changes
Title
unchanged
Multiple files uploader with CMultiFileUpload
Category
unchanged
How-tos
Yii version
changed
1.1
Tags
changed
File upload, CMultiFileUpload
Content
changed
[...]
**In your controller.**
```php
public function actionCreate()[...]
$model->attributes = $_POST['Photo'];
$photos = CUploadedFile::getInstancesByName('Photo[photos
]');
// proceed if the images have been set[...]
```php
<?php
$this->widget('CMultiFileUpload', array(
'model'=>$model,
'attribute'=>'photos',
'accept'=>'jpg|gif|png',[...]