Re: get no info by $cgi->uploadInfo()

2009-02-06 Thread Gunnar Hjalmarsson
Robert Roggenbuck wrote: I just want do upload a file whithin my CGI-script. But when I try to check the MIME-Type of the uploaded file, the script breaks. Here are the relevant code lines: Whats going on there? What did I wrong? I didn't study your code in detail, but it sounds like a m

get no info by $cgi->uploadInfo()

2009-02-06 Thread Robert Roggenbuck
Hi, I just want do upload a file whithin my CGI-script. But when I try to check the MIME-Type of the uploaded file, the script breaks. Here are the relevant code lines: use CGI qw/:cgi :form -private_tempfiles/; my $cgi = new CGI; our $fh = $cgi->upload('fileupload'); if (not $fh) { #