473,480 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Multiple file uploads

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 current method,
multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
selecting each file individually.

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk
Jul 17 '05 #1
10 4983
jn
"3A Web Hosting" <in**@3awebhosting.co.uk> wrote in message
news:3F***************@3awebhosting.co.uk...
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 current method,
multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
selecting each file individually.

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk


You can't do that with a regular HTML form.

http://sourceforge.net/projects/jupload/

Use the JUpload applet. It sits on your upload page, and the applet submits
to a processing script that you specify. (Your browser doesn't leave the
upload page though...it shows you a progress bar, and tells you when it is
done).

When you upload the files, they will be available in your processing script
as $_FILES["File1"], $_FILES["File2"], etc.
Jul 17 '05 #2
Regarding this well-known quote, often attributed to 3A Web Hosting's
famous "Mon, 29 Dec 2003 17:10:46 +0000" speech:
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 current method,
multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
selecting each file individually.


Nope... not without some sort of Java, Flash, or other client-side
front-end.

If you have the access, you could make some sort of FTP drop-box processor,
but that's iffy.

--
-- Rudy Fleminger
-- sp@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
-- http://www.pixelsaredead.com
Jul 17 '05 #3
jn
"jn" <js******@cfl.rr.com> wrote in message
news:r9*********************@twister.tampabay.rr.c om...
"3A Web Hosting" <in**@3awebhosting.co.uk> wrote in message
news:3F***************@3awebhosting.co.uk...
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 current method,
multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
selecting each file individually.

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk

You can't do that with a regular HTML form.

http://sourceforge.net/projects/jupload/

Use the JUpload applet. It sits on your upload page, and the applet

submits to a processing script that you specify. (Your browser doesn't leave the
upload page though...it shows you a progress bar, and tells you when it is
done).

When you upload the files, they will be available in your processing script as $_FILES["File1"], $_FILES["File2"], etc.


By the way, there are a couple of better applets out there...but I
recommended this one because it's free and I'm a cheap bastard.
Jul 17 '05 #4
3A Web Hosting <in**@3awebhosting.co.uk> wrote in message news:<3F***************@3awebhosting.co.uk>...
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 current method,
multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
selecting each file individually.


Not realy, at least as far as I am aware of, this is a function of the
browser/HTML not the PHP script.

What I have done in the past is to allow a .zip file upload and the
server unzips it and goes to work.

Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #5
Hi
By the way, there are a couple of better applets out there...but I
recommended this one because it's free and I'm a cheap bastard.


I know the feeling ;-)

I'll give it a try

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk
Jul 17 '05 #6
Hi Folks

Thanks for all the replies. I thought it was probably a browser issue.
I'll play around with Java and see how I get on. Not the path I would
prefer but......

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk
Jul 17 '05 #7
"jn" <js******@cfl.rr.com> wrote in message
news:r9*********************@twister.tampabay.rr.c om...
"3A Web Hosting" <in**@3awebhosting.co.uk> wrote in message
news:3F***************@3awebhosting.co.uk...
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 current method,
multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
selecting each file individually.

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk

You can't do that with a regular HTML form.

http://sourceforge.net/projects/jupload/

Use the JUpload applet. It sits on your upload page, and the applet

submits to a processing script that you specify. (Your browser doesn't leave the
upload page though...it shows you a progress bar, and tells you when it is
done).

When you upload the files, they will be available in your processing script as $_FILES["File1"], $_FILES["File2"], etc.


maybe I'm missing something here, but I created an HTML form that allows
upto 4 jpg's to be uploaded at the same time and it works fine?!

CMosser
Jul 17 '05 #8
jn
"Chris Mosser" <cmosser_at_comcast_dot_net> wrote in message
news:aL********************@comcast.com...
"jn" <js******@cfl.rr.com> wrote in message
news:r9*********************@twister.tampabay.rr.c om...
"3A Web Hosting" <in**@3awebhosting.co.uk> wrote in message
news:3F***************@3awebhosting.co.uk...
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 current method,
multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means selecting each file individually.

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk


You can't do that with a regular HTML form.

http://sourceforge.net/projects/jupload/

Use the JUpload applet. It sits on your upload page, and the applet

submits
to a processing script that you specify. (Your browser doesn't leave the
upload page though...it shows you a progress bar, and tells you when it is done).

When you upload the files, they will be available in your processing

script
as $_FILES["File1"], $_FILES["File2"], etc.


maybe I'm missing something here, but I created an HTML form that allows
upto 4 jpg's to be uploaded at the same time and it works fine?!

CMosser


By having 4 different file fields, yes you can do that. He doesn't want to
do it one by one...he wants to select multiple files and submit it using one
thing. I use that JUpload applet to upload many photos to my galleries (like
50) at the same time.
Jul 17 '05 #9
I think he is looking to click one upload button, and inster 4 files into
one box by highlighting more than one, instead of having sever inpout boxes
on a form. At least I think that what he is asking

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #10
Hi
I think he is looking to click one upload button, and inster 4 files into
one box by highlighting more than one, instead of having sever inpout boxes
on a form. At least I think that what he is asking


Yup, that's what I'm after. Having 20+ input boxes would be a real pain!

--
Colin

3A Web Hosting Team
http://www.3awebhosting.co.uk
Jul 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1165
by: !!bogus | last post by:
Hi, I found this code in the MSDN library. It works fine for a single upload, but I can't figure out how to make it work for multiple file uploads...can someone please help me? Just paste it...
5
2066
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
1386
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
340
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
5154
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
1695
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...
9
2293
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
1837
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
4853
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
7037
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
6904
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
7032
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
7076
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...
0
6873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4767
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.