I used widget in my web application to upload files. In my view file, I used following widget code:
<?= $this->widget('application.components.FileUploadWidget',array(
'model'=>$model,
'attribute'=>'f_5',
'htmlOptions'=>array('class'=>'form-control')
),true) ?>
I could not retrieve name of the uploaded file.How can I get the name of the uploaded file from the widget?(For example, if I upload file called image.jpg, I will be able to get image.jpg name itself )
Try to print this