Try it without the if block
# if ($upload_file){ open (OUTFILE,">$upload_folder/$upload") or die $!;; binmode OUTFILE; while (<$upload_file>) { print OUTFILE; } # } # else { # print "<b>Guess it's broken</b><br/>"; # }
Also, it might help to add this line while developing but take it out when finshed.
use CGI::Carp 'fatalsToBrowser'; # use only for test/debugpoj
In reply to Re^3: CGI, uploading multiple files
by poj
in thread CGI, uploading multiple files
by edimusrex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |