in reply to Re: Uploading Files (Win32)
in thread Uploading Files (Win32)
I have changed my code to the following and I am still getting the same result i.e. the contents of the file are not read! Here is the code I am using:
use CGI qw/:all/; my $form = new CGI; print $form->header; my $filehandle = $form->upload('UPLOADFILE'); print "<br>Contents of file:<br><pre>"; while (<$filehandle>){ print ;} print "</pre></body></html>";
I'm very new to PERL but the problem seems to be that the filehandle for the local file (i.e. the file to be uploaded) is not pointing to the local file for some strange reason. If I use the 'open' command to read the contents of the local file then I get an error saying "no such file or directly". Is this problem something to do with paths and forward and back slashes>
Any more help would be appreciated
Eoin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Uploading Files (Win32)
by helgi (Hermit) on Feb 06, 2003 at 16:24 UTC | |
by Anonymous Monk on Feb 06, 2003 at 17:55 UTC |