Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post

    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

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Location
    Ohio
    Posts
    254
    Thanks
    1
    Thanked 63 Times in 63 Posts
    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/

  • #3
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts

  • #4
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,036
    Thanks
    2
    Thanked 316 Times in 308 Posts
    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.

  • #5
    New Coder
    Join Date
    Jul 2008
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post
    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

  • #6
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,036
    Thanks
    2
    Thanked 316 Times in 308 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •