> Hi,

Howdy

> I'm trying to write a CGI script to upload a file from a 
>  
>  #!/usr/bin/perl -w 
> use strict;
> use CGI qw/:standard/
> print "Content-type: text/html\n\n";
>  
> print $query->filefield('uploaded_file');  
> $filename = $query->param('uploaded_file');
> $fh = $query->upload('uploaded_file');   

I believe you have to do upload() before you print any headers.
  
> while (<$fh>) {
>   print;     
>   }
> I am reading the CGI.pm from Lincoln Stein's webpage.  But, 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to