I found a free uploader class (Pure ASP upload) which I'm using very well to upload a file from a form.
Trouble is, I now want two <input type="file" on my form...
This is the bit that saves the files, and records the file name (for viewing purposes)
I'm at a complete loss as to how to set this up for two seperate files.
Obviously I can't use this loop, as it will save update the same value twice. I need a way of finding which file input is being processed.
I thought, easy! Just check to see the name of the file element:
<input type="file" name="file1" />
<input type="file" name="file2" />
If Uploader.Files.Count > 0 Then
response.write "name: " & uploader.form("file1")
End If
However this just outputs "name:"
Does anyone have any ideas?
I can't see how I can find out which file input the user has used.
Thank you for any help! A toughy methinks..
Trouble is, I now want two <input type="file" on my form...
This is the bit that saves the files, and records the file name (for viewing purposes)
Code:
For Each File In Uploader.Files.Items
File.SaveToDisk Server.MapPath("/images/cards/thumbs/")
cn.execute("UPDATE card SET NewsThumb='"&DoSQL(File.FileName)&"' WHERE card="&cardid)
Next
I'm at a complete loss as to how to set this up for two seperate files.
Obviously I can't use this loop, as it will save update the same value twice. I need a way of finding which file input is being processed.
I thought, easy! Just check to see the name of the file element:
<input type="file" name="file1" />
<input type="file" name="file2" />
If Uploader.Files.Count > 0 Then
response.write "name: " & uploader.form("file1")
End If
However this just outputs "name:"
Does anyone have any ideas?

Thank you for any help! A toughy methinks..