input type=file element

with label

with label + required

with label + readonly

with label + disabled

Code

<label>name <input id="input1" type="file"></label>

Reference