Uploading multiple images with CMultiFileUpload

Comparing #2 with #3

Revision #3 was created by Maurizio Domba Cerin Maurizio Domba Cerin on Apr 18, 2011, 7:56:26 AM.

code formating

Content

[...]
```php
// make the directory to store the pic:
                if(!is_dir(Yii::getPathOfAlias('webroot').'/images/ADD YOUR PATH HERE!/'.$model->name)) {                   mkdir(Yii::getPathOfAlias('webroot').'/images/ADD YOUR PATH HERE!/'.$model->name))                   chmod(Yii::getPathOfAlias('webroot').'/images/ADD YOUR PATH HERE!/'.$model->name)), 0755);
 
   
// the default implementation makes it under 777 permission, which you could possibly change recursively before deployment, but here's less of a headache in case you don't                 }

```

Now in your actionUpdate(), or actionCreate():
[...]