Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Multiple file uploads to the web

by raflach (Pilgrim)
on May 24, 2001 at 01:36 UTC ( [id://82745]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://82745]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-24 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found