I tried to setup a multi-file upload just like in the example, within my view file. However, the file never gets submitted towards $_FILE, as the array is completely empty. Has anyone run into this problem?
I added this widget within an already active CActiveForm (in the _form.php file), is that the problem?
<div class="form">
<?php // for use of CMultiFileUpload
echo CHtml::form('', 'post', array('enctype' => 'multipart/form-data'));
$this->widget('CMultiFileUpload', array(
'name' => 'files',
'model' => $model->pictures,
'htmlOptions'=>array('class'=>'mf'),
'max' => '5',
'accept'=>'jpeg|jpg|gif|png',
'denied' => 'Whoops! We weren\'t able to upload your file!',
'duplicate' => 'Whoops! This was a duplicate file',
));
?>
</div>
Yet, when I run vardump($_FILES)…nothing.
This is really frustrating, to be stuck on something for more than a day, when there are more important things to work on