Ok when it prints the file it will say C:/windows/pizza/perl/, it wont print out the what the file contains??sub uploadfile { for ($i=1; $i<=5; $i++) { if ($q->param("file$i")) { $filename = $q->param("file$i"); $filename =~ s/.*[\/\\]//; print "$filename"; open (FILE,">$user{'site_id'}/$filename") || &error("Could not + create $filename: $!"); binmode (FILE); print FILE $q->param("file$i"); close (FILE); } } }
Edit kudra, 2002-06-14 Changed title
In reply to Problem with CGI File Upload (was: perl trouble) by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |