<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>

<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>

    <?= $form->field($model, 'file')->fileInput() ?>
    
    <button>Submit</button>
    <?php 
    	echo  ($model->message);
    ?>


<?php ActiveForm::end() ?>