Yii 2 file input renders hidden file input tag
问题 I am using yii2 to build a simple application with a signup feature. Problem is when I render a file input tag using active forms, it render a file input field and a hidden field. The validator then picks the one which is hidden and always says that profile image is required though it saves it in my upload directory and also adds the path to the database but still returns with this error. Thanks for any help. Here is the code: View: <?php $form = ActiveForm::begin(['id' => 'form-signup' ,