Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: CGI, uploading multiple files

by poj (Abbot)
on Mar 13, 2017 at 22:12 UTC ( #1184488=note: print w/replies, xml ) Need Help??


in reply to Re^4: CGI, uploading multiple files
in thread CGI, uploading multiple files

Try
#my @files = $q->param('multi_files'); my @files = $q->upload('multi_files'); foreach my $upload (@files){ print "Upload this please -- $upload<br>"; #my $upload_file = $q->upload($upload); if ($upload){ open (OUTFILE,">$upload_folder/$upload") or die $!;; binmode OUTFILE; while (<$upload>) { print OUTFILE; } close OUTFILE; } else { print "<b>Guess it's broken</b><br/>"; } }
poj

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2021-10-25 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?