I would like to upload a variable list of files in ASP.NET Core MVC. So, I create dinamically with jQuery a list of:
<input type="file" name="a_file" id="a_file" class="d-none" />
All with the same name, in order to obtain na array on posting to the server. I would like to populate these, programatically, with jQuery or JavaScript, once I use another input tag to get the file name and then I would like to inject the file name in the previous input tags...
How can I populate these input tags with the files that I want to upload?
I would like to access those files in the Controller with:
public IActionResult SubmitForm1(IFormCollection form)
Could anyone help me?