I want to get all files that are selected in input file to c# object, but it select only one file from mutiselected files to display in text box.
Input file to select multiple files:
<input type="file" name="File2" id="File2" accept="image/*" multiple/>
Input text to display all selected files:
@Html.EditorFor(model => model.DocumentName, new { htmlAttributes = new { @id = "documentName", @class = "form-control" } })
Model:
[Display(Name = "DocumentName", ResourceType = typeof(Resources.Resources))]
public override string DocumentName
{
get { return base.DocumentName; }
set { base.DocumentName = value; }
}
What changes are required in my code, to resolve it?