in reply to Upload Folders

You can zip all the file at the client side, do single file update, unzip at the server using Archive::Zip do your magic with Image::Magick and publish.

An alternative way to use another protocols like FTP if possible or emails.

Yet another alternative is to provide mutiple file upload boxes (like 10 at max), fill with the path (using javascript) to the folder and client may just have to type filename for the rest of the entries.

Yet another alternative is to install a client software which can send the files to your server.

artist

Replies are listed 'Best First'.
Re: Re: Upload Folders
by p6steve (Sexton) on May 21, 2003 at 21:34 UTC

    Ah...to be more precise...

    • Needs to be any client HTML browser
    • No explicit client sw install allowed
    • No (FTP) server on client available
    • Perhaps "inline" software <suck>javascript or java applet</suck> allowed

    I would much prefer a server side perl solution and I am wondering if there may be a clever way to fool browsers to send all files in a selected dir in a single multipart form (or to somehow iterate over the client files).

      If I had a browser that could be fooled into sending all the files in some directory, I'd stop using it.

      The Netscape upload hack is client-driven, not server-driven. The browser would have to support some scheme to send more than one file. Then you're into promoting a new standard.

      --
      [ e d @ h a l l e y . c c ]

      Nothing to do with Perl, but if JavaScript is allowed, and the number and names of the files were predictable, it might be possible, right?

      I mean, if you knew that the files were always called "1.jpg" through to "30.jpg" then you could script the form values and the form submissions?

      It's still a bad idea, I'm just thinking aloud.
      --

      “Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
      M-J D