CMultiFileUpload is not working when i tried to upload two different type of extension simultaneously…
For example, if i select .pdf and .docx file together and post the form only one file is uploading now…
also i print the global constant $_FILES, it’s array is also showing only one (last added) file…
Is it a bug ??.. Please help me on this matter…
My code is…
$this->widget(‘CMultiFileUpload’, array(
'model' => $model,
'attribute' => 'filename',
'accept' => 'jpg|gif|png|txt|pdf|doc|docx|ppt|pptx|rtf|xls|xlsx',
'denied' => 'Only doc,docx,pdf and txt are allowed',
'max' => 1000,
'remove'=> '<i class="icon-trash wysiwyg-color-red"></i>',
'duplicate' => 'Already Selected',
'options' => array('id' => 'myclass1','onFileSelect' => 'function(e, v, m){ $(".filename").html("Add more..."); }',),
'htmlOptions' => array('class' => 'myclass', 'multiple' => false, 'size' => 25)
));