I have a WebForms
application that needs to receive multiple files that will be associated with a specific type of my system.
Ex:
Type : [Driver's license] | File : img001.png
Type : [Proof of residence] | File : comp001.pdf
I need to receive this information on a page WebForm
.aspx
.
If it was just to get the files, you could pick it up using Request.Files
, however you need to know the Type of the document to be able to save to the bank.
I've figured out how to use the name of the file fields as a array
using arquivos[0]
, arquivos[1]
and associate with type ( tipos[0]
, tipos[1]
). Doing so could use the indexes that I could guarantee the type would be related to the file. But I do not know how to access this information on .aspx
pages.
With MVC I can do this well, but since I do not have the domain with WebForms
, I end up beating myself up a bit.
How could I do this in a way without "Gambiarras"?