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
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) {
#