Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Please help Monks!
As part of a CGI script I'm writing (using CGI.pm of course), I need to print up a form to upload a file. That's the easy part, I just do something like this:
So the user enters some filename like C:\My Documents\somefile.txt and clicks Submit.
But now what do I do to actually get the file?
As part of a CGI script I'm writing (using CGI.pm of course), I need to print up a form to upload a file. That's the easy part, I just do something like this:
print <<EOP; <form enctype="multipart/form-data" method=post> <input type=hidden name=navigateTo value=upload> <p align=center><input type=file name="file"></p> <p align=center><input type=submit value=Upload></p> EOP
So the user enters some filename like C:\My Documents\somefile.txt and clicks Submit.
But now what do I do to actually get the file?
|
---|
Replies are listed 'Best First'. | |
---|---|
(wil) Re: How To Upload File Using CGI?
by wil (Priest) on Jul 02, 2002 at 16:04 UTC | |
Re: How To Upload File Using CGI?
by kodo (Hermit) on Jul 02, 2002 at 17:14 UTC | |
by rob_au (Abbot) on Jul 03, 2002 at 00:25 UTC | |
Re: How To Upload File Using CGI?
by PerpLexicon (Novice) on Jul 02, 2002 at 17:58 UTC | |
Re: How To Upload File Using CGI?
by trouble (Beadle) on Jul 02, 2002 at 18:31 UTC | |
Re: How To Upload File Using CGI?
by atcroft (Abbot) on Jul 02, 2002 at 17:20 UTC | |
Re: How To Upload File Using CGI?
by neilwatson (Priest) on Jul 02, 2002 at 17:23 UTC |
Back to
Seekers of Perl Wisdom