Check out example codes for "mvc input type file". It will help you in understanding the concepts better.

Code Example 1

@using (Html.BeginForm("Action", "Controller", FormMethod.Post, new 
                                       { enctype = "multipart/form-data" }))
{
    @Html.TextBoxFor(m => m.File, new { type = "file" })
    @Html.ValidationMessageFor(m => m.File)
}

Learn ReactJs, React Native from akashmittal.com