SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast vinai's Avatar
    Join Date
    May 2004
    Location
    Singapore
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Any function/class/library to Upload an entire Folder to Server, using PHP

    Hi,

    I am trying to upload hundreds of images stored in a folder. The user will select a folder using Browse, on theil PC, and then the PHP code should take each and every photo inside the folder, and upload it to the server.

    If thumbnail images (meaning resizing the image - either before or after the upload) can be done, it will be an added advantage.

    Please update if there is any existing library, function, or utility that can make a single click to upload all files in a folder, using PHP

    Thanks,
    Vinai

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Currently the only way to upload an entire folder is to ZIP it and then use PHP's built in class to extract the contents of it as WebKit is the only browser to support directory uploads.

  3. #3
    SitePoint Guru bronze trophy TomB's Avatar
    Join Date
    Oct 2005
    Location
    Milton Keynes, UK
    Posts
    988
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    Indeed. It's a limitation of browsers rather than PHP. You can quite easily do it with Flash, but whether you'd want to rely on that is up to you.


Tags for this Thread

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
  •