Welcome to WebmasterWorld Guest from 34.231.247.139

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Mass image upload in PHP, please help

     
11:07 pm on Nov 20, 2007 (gmt 0)

New User

10+ Year Member

joined:May 12, 2006
posts:21
votes: 0


Hi all, could anyone direct me to any turoials or scripts that explain how do to a mass image upload similar to that of Facebook or Hotmial's photo attachment?

Any feedback would be greatly appreciated.

1:39 pm on Nov 21, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15756
votes: 0


a single upload is the same but you just add more inputs to the form and loop through them in the upload script

this is one
[webmasterworld.com...]

10:15 pm on Nov 21, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:May 12, 2004
posts:533
votes: 0


flickr have a lovely new javascript one that allows you to select multiple images at once. I tried to pick it apart to see how it worked and got nowhere after an hour.

At least i think it's javascript, it certainly did ask to install any active-x script or flash or similar.

7:13 am on Nov 22, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 15, 2004
posts:1867
votes: 0


flickr have a lovely new javascript one that allows you to select multiple images at once.

The task of the javascript here is that to provide you virtually unlimited number of file input boxes as per you requirement.

Once those file boxes are submitted, there is a need for a server side script like PHP to run the upload process. But I wouldn't assume the javascript to be able to upload the file to the server.

Multiple file uploads can be taken just as any one upload, running over and over again to pick the next file on the line.

5:53 pm on Nov 22, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:May 12, 2004
posts:533
votes: 0


Indeed, but how did they get javascript (or whatever)to allow you to select multiple files with one input, after that it's a simple case of passing those values to ajax to generate the file upload form fields.

If someone could tell me that, i would be a happy man ;-)

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members