raflach has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know of any kind of hack to allow multiple files to be uploaded at one time to a website via html/cgi? I have tried entering a comma seperated list in the file input box, and having my backend split it and loop, but this fails miserably... Help please!!

Replies are listed 'Best First'.
(Ovid) Re: Multiple file uploads to the web
by Ovid (Cardinal) on May 24, 2001 at 01:43 UTC

    The file input box is not a text input box. Typing the filename shouldn't work. You need to use the browse button to select the file.

    To do what you want, use multiple <input type="file" name="first_file"...> tags and browse to all of the files separately. Then, just use CGI.pm to grab the files that were uploaded. Each filename param will point to the appropriate file. If you're still having trouble, post some of your code along with the HTML form.

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Re: Multiple file uploads to the web
by Beatnik (Parson) on May 24, 2001 at 01:49 UTC