Dynamic image upload

Hi, I’m new to yii. I’m trying to obtain file input field for user image, but I want it to upload dynamically to server with ajax and instantly to show in box, without reloading site. I normally use ajax and script for file upload, but how can I do it in YII way?

Generally I have ‘post’ model and ‘photo’ model. One post can have many photos. I need to have one form for posting a post and within it two boxes for uploading and saving an image dynamically with ajax. Hope someone could show me right directions?

regards

Choose among lots of tools:

http://www.uploadify.com/

http://valums.com/ajax-upload/

etc.

ajax upload in google.

Not sure there are extensions for each tool exists.

I’m aware of those tools. However was searching for more yii style solution… hoping it can be somehow done with ajax model validation in yii.

A good start is here: LINK