Revision #3 has been created by Antonio Ramirez on Dec 10, 2012, 7:52:35 AM with the memo:
Added 'Don Felipe' Notes
« previous (#2)
How to use YiiBooster TbFileUpload widget
YiiBooster, How to, File upload
[...]I normally create a `files` folder and I allocate it within my `www` one, that is where I keep my css, js, images files. So, even though you can place it where ever you wish and for the sake of the example, I will use the `files` folder name.
I also assume that you have configured a path alias that references the `files` folder. On this example, the path alias is `frontend.www.files`.
### Setup your model
The way you handle validation on the server is up to you, the configuration I am going to provide now is just an example.
[...]$model = new MyModel('upload');
$model->picture = CUploadedFile::getInstance($model, 'picture');
if ($model->picture !== null && $model->validate(array('picture'))
The upload action example was not really tested, if any of you had problems with it, please submit your changes to the [YiiBooster Forum Topic](http://www.yiiframework.com/forum/index.php/topic/36258-yiibooster/). Any help would be highly appreciated to improve this wiki.