<?= $form->field($model, 'tmpFile')->textInput(['multyple' => true]);
[['tmpFile'], 'file' 'extenstions' => 'jpf, pdf', 'mime-types' => 'image/jpef, application/pdf', 'maxFiles' => 5]
if(count($arr['jpg']) > 5 || count($arr['pdf']) > 1 )
return;