<form
action = '/add'
method = 'post'
enctype = 'multipart/form-data'
class = 'form'
>
<label class = 'btn'>
Выбрать и отправить файл
<input
type = 'file'
name = 'file'
class = 'input-file__input'
onchange = 'this.form.submit();'
/>
</label>
</form>