Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 11-04-2009, 05:56 PM   PM User | #1
the moose
New Coder

 
Join Date: Jul 2008
Posts: 68
Thanks: 2
Thanked 1 Time in 1 Post
the moose is an unknown quantity at this point
Upload Multiple Files

Right, I can upload multiple files by having multiple input type="file" parts of a form, but what I want to do is have one of these where you can select multiple files and then have a PHP script that cycles through the selected files and uploads them.

Any ideas??

Cheers

The Moose
the moose is offline   Reply With Quote
Old 11-04-2009, 06:10 PM   PM User | #2
shadowmaniac
Regular Coder

 
Join Date: Apr 2005
Posts: 100
Thanks: 0
Thanked 31 Times in 31 Posts
shadowmaniac is an unknown quantity at this point
http://www.phpeasystep.com/workshopview.php?id=2
Check the above link. You may also be interested in the following:
http://www.fyneworks.com/jquery/multiple-file-upload/
shadowmaniac is online now   Reply With Quote
Old 11-04-2009, 07:08 PM   PM User | #3
kbluhm
Regular Coder

 
kbluhm's Avatar
 
Join Date: Apr 2007
Location: Philadelphia, PA, USA
Posts: 746
Thanks: 2
Thanked 100 Times in 97 Posts
kbluhm is on a distinguished road
http://www.php.net/manual/en/feature...d.multiple.php
__________________
ZCE
kbluhm is offline   Reply With Quote
Old 11-04-2009, 08:03 PM   PM User | #4
CFMaBiSmAd
Senior Coder

 
CFMaBiSmAd's Avatar
 
Join Date: Oct 2006
Location: Denver, Colorado USA
Posts: 2,682
Thanks: 2
Thanked 245 Times in 237 Posts
CFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the rough
Also - http://swfupload.org/ Allows you to select multiple files (multi-select left-click or right-click/drag box) and then upload them.
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
CFMaBiSmAd is online now   Reply With Quote
Old 11-05-2009, 12:25 PM   PM User | #5
the moose
New Coder

 
Join Date: Jul 2008
Posts: 68
Thanks: 2
Thanked 1 Time in 1 Post
the moose is an unknown quantity at this point
Thanks for all your suggestions so far guys.

The issue is that my users are going to be uploading 4-10 files from a folder which has a few thousand (if not, more!!) files in it, and would like to just open the one file browser and select all of them.

Any other suggestions??

Cheers

The Moose
the moose is offline   Reply With Quote
Old 11-05-2009, 02:59 PM   PM User | #6
CFMaBiSmAd
Senior Coder

 
CFMaBiSmAd's Avatar
 
Join Date: Oct 2006
Location: Denver, Colorado USA
Posts: 2,682
Thanks: 2
Thanked 245 Times in 237 Posts
CFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the rough
So, did you even look at the swfuplaod link I posted. It has a demo page with several of the various ways you can use it, including selecting multiple files at once. A HTML form by itself cannot do what you stated. The HTML form file browse dialog box is limited to selecting one file at a time.
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
CFMaBiSmAd is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:59 AM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.