I am trying to code an upload page that does the following:
- User selects up to 5 files to upload
- Once they click submit, behind code validates that none of the (1 to 5) uploaded files does not already exsist.
a. If they do, then an error message stating which file is a duplicate is displayed to the user on the postback.
b. If all files (1 to 5) do not exist, then they are saved to server, the SQL table is updated with the new file names, locations, etc.
I have the upload section working well as well as the writing the new file information to the correct table but I cannot get the file exists check code to work properly.
Here's what I have...