Forum Moderators: coopster

Message Too Old, No Replies

Mass image upload in PHP, please help

         

Kavkan

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

10+ Year Member



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.

jatar_k

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

WebmasterWorld Administrator 10+ Year Member



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...]

hughie

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

10+ Year Member



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.

Habtom

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

WebmasterWorld Senior Member 10+ Year Member



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.

hughie

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

10+ Year Member



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 ;-)