By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

Multiple File Uploads

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Did you read this article?
http://www.wimdows.net/articles/article.aspx?aid=4
I think that it is very useful for you.
-----Original Message-----
Hi,

I am working on ASP.Net. My requirement is that I wantto 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 thepath of the file to a javascript variable through
javascript. After adding all the documents, the user willclick on Save Button. I then need to upload all the filesby accessing my javascript variable.

I used webclient class. I am able to upload all the filesthrough 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 submittingthe 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
.

Jul 21 '05 #2

P: n/a
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

-----Original Message-----
Did you read this article?
http://www.wimdows.net/articles/article.aspx?aid=4
I think that it is very useful for you.
-----Original Message-----
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
.

.

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.