I want to create multiple file upload with jquery "Next file" button. I was thinking of simething simple like it was posted here: jQuery solution for dynamically uploading multiple files but I have problems with naming.
I'm using a list of HttpPostedFileBase and my name attribute looks like this:
name="FileList.File[0].Content"
I don't want to use Ajax and ask for View from server. I just want to append new line with input with correct name.
Can anyone help?
EDIT:
My FileList model consist not only HttpPostedFileBase Content, but also select Type field. Those fields after render look like this:
select class="input-large" name="FileList.File[0].Type">...< /select>
input name="FileList.File[0].Content" .../>
Those field are rendered in separate View using Html.Editorfor. I want them both to be appended when "Next file" button is clicked.