Revision #6 has been created by Kostas Apazidis (KonApaz) on Nov 18, 2014, 12:37:30 PM with the memo:
using model and attribute instead name
« previous (#5) next (#7) »
Changes
Title
unchanged
Multiple files uploader with CMultiFileUpload
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
File upload, CMultiFileUpload
Content
changed
[...]
if (isset($_POST['Photo'])) {
$model->attributes = $_POST['Photo'];
$photos = CUploadedFile::getInstancesByName('Photo[photos
]');
// proceed if the images have been set
if (isset($photos) && count($photos) > 0) {
// go through each uploaded image[...]