I have N files being uploaded to this application. the names of each are unique, but i dont know how to go about getting the byte array based on a certain name.
<input type="file" name="file1" /> and on the server would have something like
byte[] data = Request.Files["file1"]; //doesnt work, as i believe it wont take a string, but only an int index When i was looking up these solutions, the FileName doesnt really care that much, so Files[0].FileName will not help, nor will indexing. I was hoping to be able to reference the contents based on the name like above.
I wasnt sure where i could find this out. Was looking around MSDN and on here.
I have a lot of files, each with a unique name.... then based on the unique name, which actually contains some additional information, will tell me what to do with it.
It doesnt seem as easy as it is in PHP.
Request.Files.Countwhat is returned?