i am using a dropdownlist to call a view file of a model where i have used CMultifileUpload.
if i use the model directly where CMultifileUpload is used.then its works fine.But when used in an ajax div the prompt for added file is not coming also not able to add multiple file.
please help.
thanks
<div class="row">
<?php echo $form->labelEx($b, 'image_name'); ?>
<?php
$this->widget('CMultiFileUpload', array(
'model' => $b,
'attribute' => 'image_name',
'name' => 'image_name',
'accept' => 'jpg|gif|png',
'options' => array(
'onFileSelect' => 'function(e, v, m){ }',
'afterFileSelect' => 'function(e, v, m){ }',
'onFileAppend' => 'function(e, v, m){ }',
'afterFileAppend' => 'function(e, v, m){ alert(v+" has been added")}',
'onFileRemove' => 'function(e, v, m){ }',
'afterFileRemove' => 'function(e, v, m){ alert(v+" has been removed") }',
),
));
?>
<?php echo $form->error($b, 'image_name'); ?>
</div>