in reply to Uploading Files (Win32)
I suggest reading the documentation for the CGI module (perldoc -X CGI), specifically the chapter entitled:
CREATING A FILE UPLOAD FIELD
Here is some code, mostly from the documentation to start you off. I haven't time to do all of it now. Please specify a full path for where you want to save the file locally. The browser does not and should not have permissions to write wherever he pleases on the server.
--#!perl -wT use strict; use CGI; my $form = new CGI; print $form->header; my $filehhandle = $form->upload('FILE'); print "<br>Contents of file:<br><pre>"; while (<$filehandle>){ print;} print "</pre></body></html>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Uploading Files (Win32)
by Anonymous Monk on Feb 06, 2003 at 15:21 UTC | |
by helgi (Hermit) on Feb 06, 2003 at 16:24 UTC | |
by Anonymous Monk on Feb 06, 2003 at 17:55 UTC |