Hi All,

Sorry if this is slightly off topic..

For a small website which will be used mainly to store images during a long trip, I am looking for an easy to use method to upload many (100+) images onto a webserver. Obviously, multiple file form elements is not realistic.
The next option I found, was the use of a java applet called jupload. This however requires a java runtime to be installed., Since this person will be travelling south/central america, and may not have the option to install anything on the computers, that's not ideal either.

Is there really no good alternative for multiple file uploads? It need to be able to select several (again 100+) image files in one go, and upload them all. Can the PhP FTP tools be used for this? I could not figure out how to create the client side for it. Is also seems to be able to use only one file box.

Anybody with a solution?

Thanks,

Jelle.

    Would the user be able to zip them up and then upload the zip file? This could then be unzipped on the server. I can't think of an internet cafe I've been in which didn't have winzip.

      Hi Bubblenut,

      Interesting twist of thought!
      Could you please elaborate on how to unzip the file?

      THanks,

      Jelle.

        As far as unzipping on the remote server: if it's on a linux box, you could use "unzip" from the shell. I'm not sure if "unzip" is standard on all linux boxes, especially if the linux web server has been hardened, but if you (or the user) has SSH access to the box, simply issue "unzip" from the shell to find out. It should return the options available for running the "unzip" command.

        I guess the other option is to run a script local to the user that loops through all items in the user's photo directory and attempts to upload each file. Could be time consuming, though, so I think bubblenut's suggestion is the better choice.

          Hi Rachel,

          THx for your comment.

          The winzip thing is not going to work, I think: The zip functions for PhP have not been included in the PhP installation at my webhost. Only the Gzip functions are available.

          Any other suggestions?

          J.

            Did you mean to say that your host doesn't have "unzip" as opposed to "winzip"? I wouldn't expect to find winzip on a Linux box, but maybe you confused the two.

              I think leatherback is refering to php's own zip functionality. The option of running it from the command (as rachel suggested) line is still viable, if the command line program unzip is installed on the server. You'd upload the zip file to a local file and then make an exec/system/shell_exec call to unzip on the file. Another option would be to use gzip, I know for a fact that winzip can unzip gzipped files so I would imagine that it can zip them up as well.

                OK,

                going to solve it a bit more elaborate.. Upload zip with pics to the server, send email to my home server, download there, and process at home. When I get home in the evening, I re-upload it to the server.

                The commandline option will be further investigated when time is not an issue anymore..

                THanks guys,

                Jelle.

                  if you can get jupload, it sure is a nice little applet.

                  it allows for control clicking of multiple devices, and although its somewhat of a pain to get working the way you want (especially if you want it to interact with a database), it comes in handy for multiple file uploads. the documentation is bad, but it doesnt take too long to figure things out, even to a newbie like me.

                  i had this problem a few weeks ago, and jupload was the only good solution.

                  clicking the "browse" button a hundred times is crazy.

                    Write a Reply...