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?