473,395 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Multiple File Uploads

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
2 1901
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: 3A Web Hosting | last post by:
Hi Is it possible to perform multiple file uploads via a form? It's no problem uploading single files but I want to be able to highlight a group of files and upload them all in one go. My...
5
by: Kikoz | last post by:
Hi all. I assume that if the user uploads a file from aspx page IIS will put all future requests to the same page from other users in a line and all of them will be waiting until this upload...
3
by: darrel | last post by:
My understanding is that using the FILE form element to allow a file upload is limited to one unique file per page. Is that correct? Any thoughts on how best to design an interface to allow...
4
by: Steven | last post by:
I have a situation where I need to upload more than one file from a client to the server, I am having problems finding any examples of how I can ahhieve my goal. My Requirements are: 1, There...
4
by: yehaimanish | last post by:
I am developing the project management system. Each Project: 1. Title, description ... , stored in mysql database 2. Upto ten files (initial description), (name in db, file in file system) 3....
0
by: leen | last post by:
hola.. i need a help...this is my coding for uploading multiple files...the problem is..i want the files that i have been upload will show in the same page but using only one text box..can anyone...
6
by: Emmanuel Petit | last post by:
First of all I am rather new into PHP. I use php 5 and I am putting together a web site for a local association I belong too. Most of the site is okay, except for this problem : I need to be...
9
by: Jankie | last post by:
<?php if(isset($_POST) && $_FILES > 0){ foreach ($_FILES as $key => $error) { $name = $_FILES; $tempname = $_FILES; ………… ……… $path = 'uploads/'; include 'dbcon.php'; $rep = strpos($_FILES,...
0
by: santoshannamalai | last post by:
Hi, I would like to know what technology does rapidshare use to manage its multiple, large file uploads. Rapidshare has thousands of users. Still Rapidshare manages to maintain the uploads onto...
4
by: MoroccoIT | last post by:
Greetings - I saw somewhat similar code (pls see link below) that does mupltiple files upload. It works fine, but I wanted to populate the database with the same files that are uploaded to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.