in reply to Re^10: File Upload On Windows 8 and Perl
in thread File Upload On Windows 8 and Perl

Try uploading a small text file to this test script
#!perl use strict; use CGI qw( :standard); use CGI::Carp qw(fatalsToBrowser); my $q = CGI->new; print $q->header(),$q->start_html(); for my $p ($q->param){ print "$p = ".$q->param($p)."<br/>" } print "<pre>"; my $upload_filehandle = $q->upload("photo"); while ( <$upload_filehandle> ) { print $_; } print "</pre>"; print $q->end_html;
poj