uploading multiple files

A

Andy Fish

Hi,

I have an asp.net form with multiple <input type=file> elements on it.

when the form is posted, I get an array of files, but how do can I figure
out which one in the array relates to which input box on the screen?

do I have to assume that Request.Files[0] always coresponds to the first
<input type=file> element?

TIA

Andy
 
A

Andy Fish

hmm, that seems to be set to the control ID for simple controls, but when
they are in a datagrid, it's almost impossible to relate that back to the
datagrid items without parsing the name and making assumptions about the way
it names the sub-controls.

I think I will assume they are in the same order.


Bruce Barker said:
look at the keys collection


-- bruce (sqlwork.com)

Andy Fish said:
Hi,

I have an asp.net form with multiple <input type=file> elements on it.

when the form is posted, I get an array of files, but how do can I figure
out which one in the array relates to which input box on the screen?

do I have to assume that Request.Files[0] always coresponds to the first
<input type=file> element?

TIA

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top