Posted on: 5/17/2011 11:10:28 AM | Views : 242

Hi All

I have the below code that uploads multiple files on a form that is submitted by a user. Its an existing application so i cannot really change the way the files are uploaded. The form has multiple upload controls, some of them are even generated by JS (when user needs to add more than 1 file).
the code below takes all files in all the controls and uploads them to the DB, what i need to do now is to label 2 of the files in the database so that i can display them in the appropriate field when loaded. So basically i need to know which upload control is the file coming from so that when i save it i can label it in the database.

Here is the code:
HttpFileCollection uploads = HttpContext.Current.Request.Files; for (int i = 0; i < uploads.Count; i++) { HttpPostedFile upload = uploads[i]; string FileID = ""; ...

Go to the complete details ...