Represents <input>
element of type "file" that lets the user choose one or more files from their device storage.
Documentation:
Widget:
use Yiisoft\Form\Field\File;
echo File::widget()
->name('avatar')
->inputId('id-test')
->label('Avatar');
Result will be:
<div>
<label for="id-test">Avatar</label>
<input type="file" id="id-test" name="avatar">
</div>