Reputation: 3164
In my Action Method I am currently passing 3 files as separate HttpPostedFileBase objects. I'd like to pass them as an IEnumerable container but how could I find out which upload control they came from?
Thanks.
Upvotes: 1
Views: 80
Reputation: 2550
Not sure I fully understand what you mean without your code, but...
public ActionResult Upload(HttpPostedFileBase file1, HttpPostedFileBase file2, HttpPostedFileBase file3) {
On your method receiving the post whereby file1, 2, 3 etc. are the names of the fields on the client side, would give you that information.
Please provide more information if the above is not what you need.
Upvotes: 1