Matching up multiple uploaded files in ASP.NET
Posted on 2013-12-14
I have a form that has multiple uploads.
(lets say an upload for a cake picture and an upload for the recipe)
<input type="file" name="cakepic" />
<input type="file" name="recipe" />
On the server, i need to put one file in one directory, and one file in another.
The problem I have is, on the server side, how do I tell the two files apart?
(I can't use the FileName as the user can call the files whatever they wish)
How can I get the "name" attribute from Request.Files?