By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 995 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

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
Share this Question
Share on Google+
10 Replies


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

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

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

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

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

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

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

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

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.