Reputation: 1859
I am a newbie in yii framework. I need multiple file upload field in my form like this http://www.eha.ee/labs/yiiplay/index.php/en/site/widget?view=multifileupload
.
But i could't find the detailed code and upload methods in this url. I also need to save the array of urls of uploaded images in my database. Is there any detailed reference? Please help me.
Upvotes: 0
Views: 2868
Reputation: 8072
Uploading multiple images with CMultiFileUpload look here
http://www.yiiframework.com/wiki/176/uploading-multiple-images-with-cmultifileupload/
Upvotes: 1
Reputation: 3242
You can use CUploadedFile
to manage files that are being uploaded to your server. To handle multiple just format your model and it's rules correctly, there shouldn't be a problem.
Have a look here to get started:
Then come back if you've got a specific problem with something.
Upvotes: 0