I´m trying to use WhFileUpload widget as follow:
view:
<?php
$this->widget(
'yiiwheels.widgets.fileupload.WhFileUpload',
array(
'name' => 'fileuploadui',
'url' => $this->createUrl('site/upload')),
'multiple' => true,
)
);
?>
SiteController.php
public function actions()
{
return array(
'upload' => array(
'class'=>'ext.UploadHandler', // taken from Jquery File Upload site
),
);
}
}
After I start the upload, then returns "syntax error - unexpected token …"
What am I doing wrong?
Thanks in advance