Hi guys i need help !! In MVC C#
- i have 5 input file for uploading images and 5 text box and 5 check box
- each input file previews the chosen image and he can choose the thumbnail by choosing the check box
# problem im facing #
in controller im getting only four images (or)path from trough FROM COllection
HttpPostedFileBase File1 = Request.Files["fileupload1"];
HttpPostedFileBase File2 = Request.Files["fileupload2"];
HttpPostedFileBase File3 = Request.Files["fileupload3"];
HttpPostedFileBase File4 = Request.Files["fileupload4"];
HttpPostedFileBase File5 = Request.Files["fileupload5"];
and for the fourth one im getting null ??? i have checked the id's nothing wrong in them ..
what am i doing wrong here .. ???
Here is my view code >>
@using (Html.BeginForm("AddPortfolio", "Portfolio", FormMethod.Post, new { id = "form_model_index", enctype = "multipart/form-data", autocomplete = "off" }))
{
<input type="file" name="fileupload1" id="fileupload1" accept="image/*" >
<input type="file" name="fileupload2" id="fileupload2" accept="image/*" >
<input type="file" name="fileupload3" id="fileupload3" accept="image/*" >
<input type="file" name="fileupload4" id="fileupload4" accept="image/*" >
<input type="file" name="fileupload5" id="fileupload5" accept="image/*" >
<br/>
<input type="submit" class="button-for-applied" value="save">
}