SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Location
    Israel
    Posts
    523
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How can i upload multiple files with PHP using only 1 file upload field

    Hey guys, as the title asks
    how can i upload multiple files with PHP using only 1 file upload field in the form?
    It probably needs to be used with the html5 multiple attribute on the file field but how do i handle it

    Also i would appreciate if it could come with a progress bar
    Any guide / code sample would help

    Thanks.
    Ulthane

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    For multiple file uploads and a progress bar you would be better off using Flash and/or Silverlight. Trying todo progress bars with PHP is near impossible.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2010
    Location
    Israel
    Posts
    523
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ya i found simple one with JS : http://www.sitepoint.com/forums/show...(file-uploads) thanks anyways

  4. #4
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    here you also find a simple PHP script that can upload multiple files whith an Ajax progress bar:

    http://mydailyhacks.wordpress.com/20...-progress-bar/

    Cheers


Bookmarks

Posting Permissions

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