MVC how to upload multiple files for each file type
I have a view within which I have three different text file types/file
inputs for example the first input is for .json, the remaining two are
similar to .json but different formats which users can upload. Some times
for each file type users can have multiple files so currently they zip
them up and upload a zip file for a given file type, My code already
accomodates zip files.
The request is that users can select multiple files for each file type
instead of a zip, for instance if they click browse, they can select two
files and so on for each file type. I do realize that asp.net has an
upload limit which I can handle.
My question is that the file input type will only allow a user to select
single files and not multiple files. Are there any third part utilities
that I could use for this scenario?
<input type="file" name="file" id="file1" style="width: 500px" />
<input type="file" name="file" id="file2" style="width: 500px" />
<input type="file" name="file" id="file3" style="width: 500px" />
[HttpPost]
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(RunLogEntry runLogEntry, String
ServiceRequest,
string submit, string submit1, string
submit2, string submit3,
IEnumerable<HttpPostedFileBase> file,
String AssayPerformanceIssues1,
List<string> Replicates)
{
No comments:
Post a Comment