Multiple File Uploads

  • Thread starter Thread starter Sundar
  • Start date Start date
S

Sundar

Hi,

I am working on ASP.Net. My requirement is that I want
to Upload Multiple Files to the Server. I need to have
ONLY ONE FILE UPLOAD CONTROL in my page. I SHOULD NOT
SUBMIT THE PAGE FOR EACH AND EVERY DOCUMENT browsed.

I am having a File Upload HTML Control and an Add Button
on my page. The user will browse for the document to be
uploaded and then click on that Add button. I then add the
path of the file to a javascript variable through
javascript. After adding all the documents, the user will
click on Save Button. I then need to upload all the files
by accessing my javascript variable.

I used webclient class. I am able to upload all the files
through a single post. But some extra information like
Headers (HTTP CONTENT) gets added to the file. How to
eliminate that?

I tried to build as many File Upload Controls as my
javascript variable and setting the value of the file
control from my variable through javascript and submitting
the form. But I am not able to set the value of File
Upload control in javascript. How can i set the value
through javascript?

If not, is there any other way to achieve a solution for
my problem?

Thanks in advance

Regards

Sundar
 
Hi,

Thanks a lot for your immediate reply. I read the
article which you mentioned. I want to do it only with a
single File Input Control. But the code is using as many
as the number of uploading files. So I think that this
wont help me.

Thanks and Regards

Sundar
 
Back
Top