//my rule is
['idcard_front','file','skipOnEmpty' => false],
while the view is
<?= $form->field($model,'idcard_front')->fileInput()?>
why when i click on upload button and select a file,upload ok.
then after submmit,i got erro hints:please upload a file,checking the log,validate fails.
so simple,but why?