Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How To Upload File Using CGI?

by neilwatson (Priest)
on Jul 02, 2002 at 17:23 UTC ( [id://178917]=note: print w/replies, xml ) Need Help??


in reply to How To Upload File Using CGI?

#!/usr/bin/perl -w # important, this limits the size # of the file to upload. This # prevents people from uploading # large files to slow down your # server: $CGI::POST_MAX=1024 * 100; use strict; use File::Copy; use CGI qw/:standard/; use strict; use warnings; # get filename args my $cgi = new CGI or die "new CGI: $!\n"; # The contents of your file is contained # in this scalar: my $file = $cgi->param('file');
Neil Watson
watson-wilson.ca

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-28 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found